Skip to content

Commit

Permalink
Add workflow to publish to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgraham committed Dec 28, 2021
1 parent 59c98a5 commit 8ad7190
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish

on:
push:
branches:
- main

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install
run: npm install

- name: Build
continue-on-error: false
run: npm run-script build

- name: Publish
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
publish_branch: public

0 comments on commit 8ad7190

Please sign in to comment.