File tree Expand file tree Collapse file tree 1 file changed +30
-11
lines changed
Expand file tree Collapse file tree 1 file changed +30
-11
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : [ "main" ]
66
7+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
18+
719jobs :
8- build_and_deploy :
20+ build :
921 runs-on : ubuntu-latest
1022
1123 steps :
12- - uses : actions/checkout@v3
13-
24+ - uses : actions/checkout@v4
25+
1426 - name : Use Node.js 22
15- uses : actions/setup-node@v3
27+ uses : actions/setup-node@v4
1628 with :
1729 node-version : ' 22'
1830
@@ -21,11 +33,18 @@ jobs:
2133 npm install
2234 npm run export
2335
24- - name : Deploy to GitHub Pages
25- if : success()
26- uses : peaceiris/actions-gh-pages@v4
36+ - name : Upload artifact
37+ uses : actions/upload-pages-artifact@v3
2738 with :
28- github_token : ${{ secrets.GITHUB_TOKEN }}
29- publish_dir : ./out
30- publish_branch : gh-pages
31- cname : wiki.watonomous.ca
39+ path : ./out
40+
41+ deploy :
42+ environment :
43+ name : github-pages
44+ url : ${{ steps.deployment.outputs.page_url }}
45+ runs-on : ubuntu-latest
46+ needs : build
47+ steps :
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments