Skip to content

Commit

Permalink
ci: fix deploy (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Jul 12, 2022
1 parent 483c7bf commit 251e094
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v1.2.2

- name: Configure Git user
run: |
git config --global user.email bot@silverhand.io
git config --global user.name silverhand-bot
- name: Build
run: pnpm build

- name: Deploy
run: pnpm deploy
env:
GIT_USER: silverhand-bot
GIT_PASS: ${{ secrets.BOT_PAT }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.BOT_PAT }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
user_name: silverhand-bot
user_email: bot@silverhand.io

0 comments on commit 251e094

Please sign in to comment.