File tree Expand file tree Collapse file tree 4 files changed +61
-36
lines changed
Expand file tree Collapse file tree 4 files changed +61
-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 -- --base=/quick-starts/react-quick-start/
37+
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+
41+ - name : Create pages structure
42+ run : |
43+ mkdir -p _site/quick-starts/react-quick-start
44+ cp -r quick-starts/react-quick-start/dist/* _site/quick-starts/react-quick-start/
45+
46+ - name : Upload artifact
47+ uses : actions/upload-pages-artifact@v3
48+ with :
49+ path : " _site"
50+
51+ deploy :
52+ environment :
53+ name : github-pages
54+ url : ${{ steps.deployment.outputs.page_url }}
55+ runs-on : ubuntu-latest
56+ needs : build
57+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
58+ steps :
59+ - name : Deploy to GitHub Pages
60+ id : deployment
61+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments