Skip to content

Commit 0bd1bf2

Browse files
committed
Switch to GitHub Actions deployment for Pages
1 parent f3185f1 commit 0bd1bf2

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/pages.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,32 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
9+
contents: read
10+
pages: write
11+
id-token: write
1012

1113
concurrency:
1214
group: "pages"
13-
cancel-in-progress: true
15+
cancel-in-progress: false
1416

1517
jobs:
1618
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
1722
runs-on: ubuntu-latest
1823
steps:
1924
- name: Checkout
2025
uses: actions/checkout@v4
2126

22-
- name: Deploy to GitHub Pages
23-
uses: peaceiris/actions-gh-pages@v3
27+
- name: Setup Pages
28+
uses: actions/configure-pages@v4
29+
30+
- name: Upload artifact
31+
uses: actions/upload-pages-artifact@v3
2432
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
26-
publish_dir: docs
27-
publish_branch: gh-pages
28-
force_orphan: true
33+
path: docs
34+
35+
- name: Deploy to GitHub Pages
36+
id: deployment
37+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)