Skip to content

Commit 314b459

Browse files
committed
test: fix deploy script
1 parent 3ccd861 commit 314b459

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/pages.yaml

+12-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
pages: write
14+
id-token: write
1315
steps:
1416
- uses: actions/checkout@v2
1517
- name: Use Node.js 18
@@ -32,8 +34,13 @@ jobs:
3234
cd ../
3335
- name: Build
3436
run: npm run build
35-
- name: Deploy
36-
uses: peaceiris/actions-gh-pages@v3
37-
with:
38-
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
publish_dir: ./website
37+
deploy:
38+
environment:
39+
name: github-pages
40+
url: ${{ steps.deployment.outputs.page_url }}
41+
runs-on: ubuntu-latest
42+
needs: pages
43+
steps:
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)