File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ name: Deploy Astro site to GitHub Pages
33on :
44 push :
55 branches : [ main ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
612
713jobs :
814 build :
@@ -11,18 +17,19 @@ jobs:
1117 - uses : actions/checkout@v4
1218 - uses : actions/setup-node@v4
1319 with :
14- node-version : 22
20+ node-version : 20
1521 - run : npm ci
1622 - run : npm run build
17- - uses : actions/upload-pages-artifact@v3
23+ - uses : actions/upload-pages-artifact@v4
1824 with :
1925 path : ./dist
2026
2127 deploy :
2228 needs : build
2329 runs-on : ubuntu-latest
24- permissions :
25- pages : write
26- id-token : write
30+ environment :
31+ name : github-pages
32+ url : ${{ steps.deploy.outputs.page_url }}
2733 steps :
2834 - uses : actions/deploy-pages@v4
35+ id : deploy
You can’t perform that action at this time.
0 commit comments