Skip to content

Merge pull request #13 from dasburmeister/docs #21

Merge pull request #13 from dasburmeister/docs

Merge pull request #13 from dasburmeister/docs #21

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and deploy it to gh-pages.
# This is so that we can get the build files on ToolForge by pulling the gh-pages branch.
name: Node.js CI
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build --if-present
env:
CI: false
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/build