-
Notifications
You must be signed in to change notification settings - Fork 3
88 lines (77 loc) · 2.7 KB
/
deploy.yml
File metadata and controls
88 lines (77 loc) · 2.7 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build documentation site
run: |
mkdir -p _site
cp README.md _site/index.md
cp SKILLS-INDEX.md _site/
cp ARCHITECTURE.md _site/
cp CHANGELOG.md _site/
cp CONTRIBUTING.md _site/
cp SECURITY.md _site/
cp README.zh-CN.md _site/ 2>/dev/null || true
cat > _site/index.html << 'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HCSA Skills Repository</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 1200px; margin: 0 auto; padding: 20px; }
h1 { color: #2563eb; }
.card { background: #f8fafc; border-radius: 8px; padding: 20px; margin: 10px 0; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #e2e8f0; padding: 2px 6px; border-radius: 4px; }
</style>
</head>
<body>
<h1>🚀 HCSA Skills Repository</h1>
<div class="card">
<h2>Documentation</h2>
<ul>
<li><a href="README.md">README</a> - Project overview</li>
<li><a href="SKILLS-INDEX.md">Skills Index</a> - Complete skill catalog</li>
<li><a href="ARCHITECTURE.md">Architecture</a> - System architecture</li>
<li><a href="CHANGELOG.md">Changelog</a> - Version history</li>
<li><a href="CONTRIBUTING.md">Contributing</a> - Contribution guide</li>
<li><a href="SECURITY.md">Security</a> - Security policy</li>
</ul>
</div>
</body>
</html>
EOF
echo "Documentation site built successfully!"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4