Skip to content

Bump follow-redirects from 1.15.2 to 1.15.6 in /website #60

Bump follow-redirects from 1.15.2 to 1.15.6 in /website

Bump follow-redirects from 1.15.2 to 1.15.6 in /website #60

name: Build React Site & Docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm i
cd ./website
npm i
- name: Build Docs
run: npm run docs
- name: Deploy
run: |
cd ./website
git config --global user.name $user_name
git config --global user.email $user_email
git remote set-url origin https://${github_token}@github.com/${repository}
npm run deploy
env:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.ACCESS_TOKEN }}
repository: ${{ github.repository }}