File tree Expand file tree Collapse file tree 1 file changed +41
-20
lines changed
Expand file tree Collapse file tree 1 file changed +41
-20
lines changed Original file line number Diff line number Diff line change 11# .github/workflows/static.yml
2- name : Deploy static content to Pages
2+ name : Deploy to GitHub Pages
33
44on :
55 push :
6- branches : [" main" ]
6+ branches : [main]
77 workflow_dispatch :
88
99permissions :
10- contents : read
11- pages : write
12- id-token : write
13-
14- concurrency :
15- group : " pages"
16- cancel-in-progress : true
10+ contents : write
1711
1812jobs :
19- deploy :
20- environment :
21- name : github-pages
22- url : ${{ steps.deployment.outputs.page_url }}
13+ build_and_deploy :
2314 runs-on : ubuntu-latest
2415 steps :
25- - name : Checkout repository
16+ - name : Checkout repo
2617 uses : actions/checkout@v4
2718
2819 - name : Setup Node.js
2920 uses : actions/setup-node@v4
3021 with :
31- node-version : ' 20 '
22+ node-version : 20
3223
3324 - name : Run build script
3425 run : |
3526 chmod +x Build/Buildscripts/build.sh
3627 ./Build/Buildscripts/build.sh
3728
38- - name : Upload GitHub Pages artifact
39- uses : actions/upload-pages-artifact@v3
29+ - name : Deploy to GitHub Pages
30+ uses : JamesIves/github-pages-deploy-action@v4
31+ with :
32+ branch : gh-pages
33+ folder : Build/dist
34+ # .github/workflows/static.yml
35+ name : Deploy to GitHub Pages
36+
37+ on :
38+ push :
39+ branches : [main]
40+ workflow_dispatch :
41+
42+ permissions :
43+ contents : write
44+
45+ jobs :
46+ build_and_deploy :
47+ runs-on : ubuntu-latest
48+ steps :
49+ - name : Checkout repo
50+ uses : actions/checkout@v4
51+
52+ - name : Setup Node.js
53+ uses : actions/setup-node@v4
4054 with :
41- path : ' Build/dist'
55+ node-version : 20
56+
57+ - name : Run build script
58+ run : |
59+ chmod +x Build/Buildscripts/build.sh
60+ ./Build/Buildscripts/build.sh
4261
4362 - name : Deploy to GitHub Pages
44- id : deployment
45- uses : actions/deploy-pages@v4
63+ uses : JamesIves/github-pages-deploy-action@v4
64+ with :
65+ branch : gh-pages
66+ folder : Build/dist
You can’t perform that action at this time.
0 commit comments