Skip to content

Commit bcdfbde

Browse files
jnbdzclaude
andcommitted
Switch to modern GitHub Pages deployment via Actions
Replace peaceiris/actions-gh-pages (branch-based deploy) with the official actions/upload-pages-artifact + actions/deploy-pages workflow. The old approach required a gh-pages branch that was never created, causing GitHub Pages to serve the raw README instead of the built site. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 84d46db commit bcdfbde

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ on:
66
- master
77

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

1117
jobs:
12-
deploy:
18+
build:
1319
runs-on: ubuntu-latest
1420
steps:
1521
- uses: actions/checkout@v4
@@ -36,8 +42,18 @@ jobs:
3642
- name: Copy CNAME to build output
3743
run: cp CNAME site/CNAME
3844

39-
- name: Deploy to GitHub Pages
40-
uses: peaceiris/actions-gh-pages@v4
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v3
4147
with:
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_dir: ./site
48+
path: ./site
49+
50+
deploy:
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
runs-on: ubuntu-latest
55+
needs: build
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
id: deployment
59+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)