Skip to content

Commit 9734553

Browse files
committed
fix github actions deploy
1 parent 8afb0ee commit 9734553

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/deploy.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ jobs:
99
build-deploy:
1010
runs-on: ubuntu-latest
1111

12+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
13+
permissions:
14+
pages: write # to deploy to Pages
15+
id-token: write # to verify the deployment originates from an appropriate sourc
16+
1217
steps:
1318
- name: Checkout 🛎️
14-
uses: actions/checkout@master
19+
uses: actions/checkout@v4
1520
with:
1621
persist-credentials: false
1722

@@ -23,9 +28,8 @@ jobs:
2328
env:
2429
NODE_ENV: production
2530

26-
- name: Deploy to GH Pages 🚀
27-
if: ${{ github.event_name != 'pull_request' }}
28-
uses: peaceiris/actions-gh-pages@v3
31+
- name: Deploy to GitHub Pages
32+
uses: peaceiris/actions-gh-pages@v4
2933
with:
30-
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
publish_dir: demo
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./demo

0 commit comments

Comments
 (0)