Skip to content

Commit

Permalink
chore: update pages deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
makeros committed Jul 20, 2021
1 parent d4888f3 commit 2b392ed
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tag_and_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,18 @@ jobs:
HUSKY: 0
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ env.NPM_TOKEN }}

deploy-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 14.17.3
- name: Deploy demo page
run: npm run deploy
env:
CI: true
HUSKY: 0
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"start": "webpack --watch --mode development",
"example": "cd example && npm start",
"test": "echo \"Error: no test specified\" && exit 1",
"predeploy": "cd example && npm install && npm run build",
"predeploy": "npm run buildall",
"deploy": "gh-pages -d example/dist",
"buildall": "npm install && webpack --mode production && cd example && npm install && npm run build"
"buildall": "npm install && npm run build && cd example && npm install && npm run build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 2b392ed

Please sign in to comment.