File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy web-demo to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches : [$default-branch]
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
12
+
13
+ concurrency :
14
+ group : " github-pages"
15
+ cancel-in-progress : false
16
+
17
+ jobs :
18
+ build :
19
+ runs-on : ubuntu-latest
20
+ env :
21
+ working-directory : ./examples/web-demo
22
+ steps :
23
+ - name : Checkout
24
+ uses : actions/checkout@v4
25
+ - name : Setup Node
26
+ uses : actions/setup-node@v4
27
+ with :
28
+ node-version : " 20"
29
+ - name : Setup Pages
30
+ uses : actions/configure-pages@v5
31
+ with :
32
+ # Automatically inject basePath in your Next.js configuration file and disable
33
+ # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
34
+ static_site_generator : next
35
+ - name : Install dependencies
36
+ run : npm ci
37
+ - name : Build with Next.js
38
+ run : npm run build
39
+ - name : Upload artifact
40
+ uses : actions/upload-pages-artifact@v3
41
+ with :
42
+ path : ./out
43
+
44
+ # Deployment job
45
+ deploy :
46
+ environment :
47
+ name : github-pages
48
+ url : ${{ steps.deployment.outputs.page_url }}
49
+ runs-on : ubuntu-latest
50
+ needs : build
51
+ steps :
52
+ - name : Deploy to GitHub Pages
53
+ id : deployment
54
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments