-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.17 KB
/
github-pages.yml
File metadata and controls
42 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Static Demo to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create docs folder
run: |
mkdir -p docs
cp templates/index.html docs/index.html
cp image.png docs/image.png
# Update paths for GitHub Pages
sed -i 's|src="/image.png"|src="image.png"|g' docs/index.html
# Add warning banner about backend
sed -i 's|<body>|<body><div style="position:fixed;top:0;left:0;right:0;background:#e57373;color:white;padding:12px;text-align:center;font-weight:600;z-index:9999;">⚠️ DEMO ONLY - PDF conversion requires backend server (not available on GitHub Pages)</div>|' docs/index.html
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2