File tree 2 files changed +39
-20
lines changed
2 files changed +39
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Deploy to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ # Review gh actions docs if you want to further define triggers, paths, etc
8
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9
+
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ jobs :
16
+ deploy :
17
+ name : Deploy to GitHub Pages
18
+ runs-on : ubuntu-latest
19
+ environment :
20
+ name : github-pages
21
+ steps :
22
+ - uses : actions/checkout@v4
23
+ - uses : actions/setup-node@v4
24
+ with :
25
+ node-version : 20
26
+ cache : npm
27
+
28
+ - name : Install dependencies
29
+ run : npm ci
30
+ - name : Build website
31
+ run : npm run build
32
+
33
+ - name : Set build folder as artifact
34
+ uses : actions/upload-pages-artifact@v3
35
+ with :
36
+ name : github-pages
37
+ path : ./build
38
+
39
+ - uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments