File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Demo to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : ["main"]
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+ runs-on : ubuntu-latest
20+ environment :
21+ name : github-pages
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : Setup Node
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 24
30+ cache : npm
31+
32+ - name : Install root dependencies
33+ run : npm ci
34+
35+ - name : Build package
36+ run : npm run build
37+
38+ - name : Install demo dependencies
39+ run : npm --prefix demo ci
40+
41+ - name : Build demo
42+ run : npm run demo:build
43+ env :
44+ VITE_CAMERA_KIT_API_TOKEN : ${{ secrets.VITE_CAMERA_KIT_API_TOKEN }}
45+ VITE_LENS_ID : ${{ secrets.VITE_LENS_ID }}
46+ VITE_LENS_GROUP_ID : ${{ secrets.VITE_LENS_GROUP_ID }}
47+
48+ - name : Upload Pages artifact
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : demo/dist
52+
53+ deploy :
54+ runs-on : ubuntu-latest
55+ needs : build
56+ environment :
57+ name : github-pages
58+ steps :
59+ - name : Deploy to GitHub Pages
60+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments