Skip to content

Commit 9f55f5e

Browse files
committed
ci: deploy via peaceiris/actions-gh-pages and auto-create gh-pages
1 parent ae912a6 commit 9f55f5e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ jobs:
3333
working-directory: website
3434

3535
- name: Deploy to GitHub Pages (gh-pages branch)
36-
run: npm run deploy
37-
working-directory: website
38-
env:
39-
GIT_USER: github-actions[bot]
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: website/build
40+
publish_branch: gh-pages
41+
force_orphan: true
42+
user_name: github-actions[bot]
43+
user_email: 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)