File tree Expand file tree Collapse file tree 4 files changed +56
-36
lines changed
Expand file tree Collapse file tree 4 files changed +56
-36
lines changed Load Diff This file was deleted.
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 : [web3dev-version]
6+ pull_request :
7+ branches : [web3dev-version]
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : " 18"
29+ cache : " npm"
30+ cache-dependency-path : " quick-starts/react-quick-start/package-lock.json"
31+
32+ - name : Build React Quick Start
33+ run : |
34+ cd quick-starts/react-quick-start
35+ npm ci
36+ npm run build
37+
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+
41+ - name : Upload artifact
42+ uses : actions/upload-pages-artifact@v3
43+ with :
44+ path : " quick-starts/react-quick-start/dist"
45+
46+ deploy :
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+ runs-on : ubuntu-latest
51+ needs : build
52+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments