File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # Deploy ChatRaw static frontend to GitHub Pages (interface showcase only, no backend/chat)
2+ name : Deploy to GitHub Pages
3+
4+ on :
5+ push :
6+ branches : [main]
7+ workflow_dispatch : # Allow manual trigger
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+ deploy :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Pages
26+ uses : actions/configure-pages@v4
27+
28+ - name : Prepare artifact
29+ run : |
30+ mkdir -p deploy
31+ cp -r backend/static/* deploy/
32+ touch deploy/.nojekyll
33+
34+ - name : Upload artifact
35+ uses : actions/upload-pages-artifact@v3
36+ with :
37+ path : deploy
38+
39+ - name : Deploy to GitHub Pages
40+ id : deployment
41+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments