Skip to content

Commit

Permalink
Update deploy action
Browse files Browse the repository at this point in the history
Signed-off-by: wangkun <[email protected]>
  • Loading branch information
wangkun committed May 31, 2020
1 parent b6ccaa9 commit b6781da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- run: npm install
- run: |
npx yalc publish && cd example/web && npx yalc update
npm install && npm run build && npm run export
- uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN_IN_REPO }}
Expand Down
3 changes: 2 additions & 1 deletion example/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"export": "next export"
},
"dependencies": {
"next": "9.3.5",
Expand Down

0 comments on commit b6781da

Please sign in to comment.