Skip to content

Commit 43d004c

Browse files
committed
ci: migrate pages deployment to official actions/deploy-pages
1 parent 802bbe2 commit 43d004c

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/pages.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,22 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
78

89
permissions:
9-
contents: write
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
1017

1118
jobs:
1219
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
1323
runs-on: ubuntu-latest
1424
steps:
1525
- name: Checkout Code
@@ -30,8 +40,14 @@ jobs:
3040
cd site
3141
npm run build
3242
33-
- name: Deploy to GitHub Pages
34-
uses: peaceiris/actions-gh-pages@v4
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v5
45+
46+
- name: Upload Pages Artifact
47+
uses: actions/upload-pages-artifact@v3
3548
with:
36-
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: ./site/dist
49+
path: './site/dist'
50+
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)