Skip to content

Commit

Permalink
github workflow: gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
stepheneb committed Sep 23, 2021
1 parent 8ac1afc commit 370672c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: GitHub Pages

on:
push:
branches:
- main # Set a branch name to trigger deployment
paths-ignore:
- 'readme.md'
- '.github/workflows/**'

jobs:
deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 14
- name: install dependencies
run: npm install
- name: package
run: npm run build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.0.0-alpha.1",
"description": "Explore Thoreau Artifacts",
"scripts": {
"test": "jest"
"test": "jest",
"build": "gulp build"
},
"author": {
"name": "Stephen Bannasch",
Expand Down

0 comments on commit 370672c

Please sign in to comment.