Skip to content

Commit fde31a3

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

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/main.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,27 @@ 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
44+
with:
45+
commit_message: "Deploy website."

0 commit comments

Comments
 (0)