File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ name : Build and Publish
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : read
14
+
15
+ steps :
16
+ - name : Setup Node.js environment
17
+ uses : actions/setup-node@v3.9.1
18
+ with :
19
+ node-version : 20.x
20
+
21
+ - name : Setup pnpm
22
+ uses : pnpm/action-setup@v4.1.0
23
+ with :
24
+ # Version of pnpm to install
25
+ version : latest
26
+
27
+ - name : Install Dependencies
28
+ run : pnpm install
29
+
30
+ - name : Upload Artefact
31
+ uses : actions/upload-pages-artifact@v3
32
+ with :
33
+ path : dist/
34
+
35
+ deploy :
36
+ needs : build
37
+
38
+ permissions :
39
+ pages : write
40
+ id-token : write
41
+
42
+ environment :
43
+ name : github-pages
44
+ url : ${{ steps.deployment.outputs.page_url }}
45
+
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - name : Deploy to GitHub Pages
49
+ id : deployment
50
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments