File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Updated from SvelteKit docs. See https://kit.svelte.dev/docs/adapter-static#github-pages for more information
2-
31name : Deploy to GitHub Pages
42
53on :
64 push :
7- branches : " main"
5+ branches : ' main'
86
97jobs :
108 build_site :
@@ -22,38 +20,37 @@ jobs:
2220 - name : Install Node.js
2321 uses : actions/setup-node@v4
2422 with :
25- node-version : 20
26- cache : npm
23+ node-version : 20
24+ cache : npm
2725
28- - name : Install dependencies
29- run : npm install
26+ - name : Install dependencies
27+ run : npm install
3028
31- - name : build
32- env :
33- BASE_PATH : " /${{ github.event.repository.name }}"
34- run : |
35- npm run build
29+ - name : build
30+ env :
31+ BASE_PATH : ' /${{ github.event.repository.name }}'
32+ run : |
33+ npm run build
3634
37- - name : Upload Artifacts
38- uses : actions/upload-pages-artifact@v3
39- with :
40- # this should match the `pages` option in your adapter-static options
41- 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/'
4240
4341 deploy :
44- needs : build_site
45- runs-on : ubuntu-latest
42+ needs : build_site
43+ runs-on : ubuntu-latest
4644
47- permissions :
48- pages : write
49- id-token : write
45+ permissions :
46+ pages : write
47+ id-token : write
5048
51- environment :
52- name : github-pages
53- url : ${{ steps.deployment.outputs.page_url }}
54-
55- steps :
56- - name : Deploy
57- id : deployment
58- uses : actions/deploy-pages@v4
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
5952
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