Skip to content

Commit 12e02c0

Browse files
thaglerclaude
andcommitted
Switch deploy to gh-pages branch approach
The deploy-pages@v4 action was stuck in an infinite status polling loop. Use peaceiris/actions-gh-pages instead, which pushes the built dist/ output to a gh-pages branch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d729c73 commit 12e02c0

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
workflow_dispatch:
77

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

1311
concurrency:
1412
group: pages
@@ -17,9 +15,6 @@ concurrency:
1715
jobs:
1816
build-and-deploy:
1917
runs-on: ubuntu-latest
20-
environment:
21-
name: github-pages
22-
url: ${{ steps.deployment.outputs.page_url }}
2318
steps:
2419
- uses: actions/checkout@v4
2520

@@ -31,10 +26,8 @@ jobs:
3126
- run: npm ci
3227
- run: npm run build
3328

34-
- uses: actions/configure-pages@v5
35-
- uses: actions/upload-pages-artifact@v3
29+
- name: Deploy to gh-pages branch
30+
uses: peaceiris/actions-gh-pages@v4
3631
with:
37-
path: dist
38-
39-
- id: deployment
40-
uses: actions/deploy-pages@v4
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./dist

0 commit comments

Comments
 (0)