Skip to content

Commit 4af1e8a

Browse files
committed
Add GitHub Pages deployment workflow
1 parent 1875a35 commit 4af1e8a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)