-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvibecodingtoolsdown-pages.monorepo.example.yml
More file actions
67 lines (56 loc) · 2.3 KB
/
Copy pathvibecodingtoolsdown-pages.monorepo.example.yml
File metadata and controls
67 lines (56 loc) · 2.3 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
# 本仓库为「根目录 + VibeCodingToolsDown 子目录」时的 Actions 示例。
# 若 PAT 无 workflow 权限无法推送 .github/workflows/,可将本文件复制到:
# .github/workflows/vibecodingtoolsdown-pages.yml
# 再用带 workflow scope 的 token / SSH 提交。
# 1) 生成 VibeCodingToolsDown/dist/vibecoding/manifest.json
# 2) 提交回默认分支 → 可用 raw.githubusercontent.com/.../main/.../manifest.json 获取(安装包 URL 仍在 manifest 内指向各厂商 CDN)
# 3) 同步推送到 gh-pages → 可选 GitHub Pages 静态访问
name: VibeCodingToolsDown manifest & gh-pages
on:
workflow_dispatch:
schedule:
- cron: "0 7 * * *"
push:
paths:
- "VibeCodingToolsDown/scripts/**"
- ".github/workflows/vibecodingtoolsdown-pages.yml"
permissions:
contents: write
concurrency:
group: vibecodingtoolsdown-pages
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install requests beautifulsoup4
- name: Build manifest
run: python VibeCodingToolsDown/scripts/build_manifest.py --output-dir VibeCodingToolsDown/dist
- name: Commit manifest to default branch
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add VibeCodingToolsDown/dist/vibecoding/manifest.json
if git diff --staged --quiet; then
echo "No manifest changes."
else
git commit -m "chore: refresh VibeCodingToolsDown manifest [skip ci]"
git push
fi
- name: Push dist to gh-pages (GitHub Pages)
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: VibeCodingToolsDown/dist
publish_branch: gh-pages
force_orphan: false
keep_files: false
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
commit_message: "chore: refresh VibeCodingToolsDown Pages dist"