File tree 1 file changed +53
-0
lines changed
1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : pages build and deployment
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ concurrency :
14
+ group : " pages"
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ build :
19
+ name : Build
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
24
+ - name : Setup Node
25
+ uses : actions/setup-node@v4
26
+ with :
27
+ node-version : " lts/*"
28
+ cache : " npm"
29
+ - name : Setup Pages
30
+ id : pages
31
+ uses : actions/configure-pages@v5
32
+ - name : Setup WireIt caching
33
+ uses : google/wireit@setup-github-actions-caching/v2
34
+ - name : Install dependencies
35
+ run : npm ci
36
+ - name : Build
37
+ env :
38
+ PAGES_BASE_URL : ${{ steps.pages.outputs.base_url }}
39
+ run : npm run build
40
+ - name : Upload artifact
41
+ uses : actions/upload-pages-artifact@v3
42
+
43
+ deploy :
44
+ environment :
45
+ name : github-pages
46
+ url : ${{ steps.deployment.outputs.page_url }}
47
+ needs : build
48
+ runs-on : ubuntu-latest
49
+ name : Deploy
50
+ steps :
51
+ - name : Deploy to GitHub Pages
52
+ id : deployment
53
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments