Skip to content

Test building the site as part of PRs #49

Test building the site as part of PRs

Test building the site as part of PRs #49

Workflow file for this run

name: Deploy to github pages
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
gh-pages-deploy:
name: Deploying to gh-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build application
run: npm run build
- name: Deploy
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build