File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Deploy to GitHub Pages
22
33on :
44 push :
5- branches : ' main'
5+ branches : " main"
66
77jobs :
88 build_site :
@@ -20,37 +20,37 @@ jobs:
2020 - name : Install Node.js
2121 uses : actions/setup-node@v4
2222 with :
23- node-version : 20
24- cache : npm
23+ node-version : 20
24+ cache : npm
2525
26- - name : Install dependencies
27- run : npm install
26+ - name : Install dependencies
27+ run : npm install
2828
29- - name : build
30- env :
31- BASE_PATH : ' /${{ github.event.repository.name }}'
32- run : |
33- npm run build
29+ - name : build
30+ env :
31+ BASE_PATH : " /${{ github.event.repository.name }}"
32+ run : |
33+ npm run build
3434
35- - name : Upload Artifacts
36- uses : actions/upload-pages-artifact@v3
37- with :
38- # this should match the `pages` option in your adapter-static options
39- path : ' build/'
35+ - name : Upload Artifacts
36+ uses : actions/upload-pages-artifact@v3
37+ with :
38+ # this should match the `pages` option in your adapter-static options
39+ path : " build/"
4040
4141 deploy :
42- needs : build_site
43- runs-on : ubuntu-latest
42+ needs : build_site
43+ runs-on : ubuntu-latest
4444
45- permissions :
46- pages : write
47- id-token : write
45+ permissions :
46+ pages : write
47+ id-token : write
4848
49- environment :
50- name : github-pages
51- url : ${{ steps.deployment.outputs.page_url }}
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
5252
53- steps :
54- - name : Deploy
55- id : deployment
56- uses : actions/deploy-pages@v4
53+ steps :
54+ - name : Deploy
55+ id : deployment
56+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments