修复link_lite.json bug

This commit is contained in:
Vaica committed 2026-01-21 13:13:54 +08:00
1 parent 8dec5359bd
commit 68e3cf372f
7 files changed
+251 -241

No files matched your search

+24
View File
@@ -21,6 +21,15 @@ jobs:
hugo-version: '0.128.2'
extended: true
- name: Run Pre-Build Scripts
shell: pwsh
run: |
# 1. 自动生成友链 JSON (即使本地漏提交也能保证是最新的)
./scripts/update_link_lite_json.ps1
# 2. 自动处理隐藏文章 (防止 status: hidden 的文章意外泄露)
./scripts/add_draft_to_hidden.ps1
- name: Build
run: rm -rf public && hugo --minify
@@ -43,3 +52,18 @@ jobs:
password: ${{ secrets.UPYUN_PASSWORD }}
dir: 'public' # 确认这个目录是您的构建输出目录
publish_dir: '/' # 发布到 UpYun 的根目录
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install requests
- name: Refresh DogeCloud CDN
env:
DOGECLOUD_ACCESS_KEY: ${{ secrets.DOGECLOUD_ACCESS_KEY }}
DOGECLOUD_SECRET_KEY: ${{ secrets.DOGECLOUD_SECRET_KEY }}
CDN_URL_LIST: ${{ secrets.CDN_URL_LIST }}
run: python scripts/RefreshCDN.py