File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Demos to Pages
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ jobs :
13+ build-and-deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Node
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 20
23+ cache : ' npm'
24+
25+ - name : Build Demos
26+ run : |
27+ cd demos/react-flightsearch
28+ npm install
29+ npm run build
30+ cd ..
31+
32+ - name : Assemble Public Folder
33+ run : |
34+ mkdir -p deployment-root/demos
35+
36+ cp -r demos/french-bistro deployment-root/demos/french-bistro
37+ cp -r demos/react-flightsearch/dist deployment-root/demos/react-flightsearch
38+
39+ - name : Setup Pages
40+ uses : actions/configure-pages@v4
41+
42+ - name : Upload artifact
43+ uses : actions/upload-pages-artifact@v3
44+ with :
45+ path : ' ./deployment-root'
46+
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments