add actions-gh-pages to pipeline

This commit is contained in:
sorrelbri 2020-05-25 22:21:11 -07:00
parent 56eed9cf2b
commit 0e31ceab93
4 changed files with 1966 additions and 1063 deletions

View file

@ -25,9 +25,12 @@ jobs:
run: npm install
- name: Test
run: npm run test
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
# uses: Cecilapp/GitHub-Pages-deploy@2.0.1
run: npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npm run deploy
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored
View file

@ -1 +0,0 @@
dist/*

3015
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,7 @@
"test": "jest",
"start": "webpack-dev-server --open --config webpack.dev.js",
"predeploy": "npm run build",
"deploy": "git push git@github.com:sorrelbri/game-of-life.git -d dist"
"deploy": "gh-pages -d dist"
},
"author": "",
"license": "MIT",