File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+ on :
3
+ push :
4
+ branches : ' main'
5
+ jobs :
6
+ build_site :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout
10
+ uses : actions/checkout@v4
11
+
12
+ - name : Install Node.js
13
+ uses : actions/setup-node@v4
14
+ with :
15
+ node-version : 20
16
+ cache : npm
17
+ - name : Install dependencies
18
+ run : npm install
19
+ - name : build
20
+ env :
21
+ BASE_PATH : ' /${{ github.event.repository.name }}'
22
+ run : |
23
+ npm run build
24
+ - name : Upload Artifacts
25
+ uses : actions/upload-pages-artifact@v3
26
+ with :
27
+ # this should match the `pages` option in your adapter-static options
28
+ path : ' build/'
29
+ deploy :
30
+ needs : build_site
31
+ runs-on : ubuntu-latest
32
+ permissions :
33
+ pages : write
34
+ id-token : write
35
+ environment :
36
+ name : github-pages
37
+ url : ${{ steps.deployment.outputs.page_url }}
38
+ steps :
39
+ - name : Deploy
40
+ id : deployment
41
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments