Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Commit 6515250

Browse files
committed
Push built artifact to pages branch instead of GH Pages.
1 parent 8542db1 commit 6515250

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/main.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,25 @@ jobs:
1919
npm ci
2020
npm run minify
2121
- name: Upload artifact
22-
uses: actions/upload-pages-artifact@v3
22+
uses: actions/upload-artifact@v4
2323
with:
24+
name: pages
2425
path: dist/
2526

26-
deploy-dev:
27+
deploy:
2728
permissions:
28-
pages: write
29-
id-token: write
30-
environment:
31-
name: github-pages
32-
url: ${{ steps.deployment.outputs.page_url }}
29+
contents: write
3330
runs-on: ubuntu-latest
3431
needs: build
3532
steps:
36-
- name: Deploy to GitHub Pages
37-
id: deployment
38-
uses: actions/deploy-pages@v4
33+
- name: Check out source code
34+
uses: actions/checkout@v4
35+
with:
36+
ref: pages
37+
- name: Download artifact
38+
uses: actions/download-artifact@v4
39+
with:
40+
name: pages
41+
path: .
42+
- name: Commit changes
43+
uses: stefanzweifel/git-auto-commit-action@v6

0 commit comments

Comments
 (0)