Skip to content

Commit 9a05abe

Browse files
committed
上传字体文件
1 parent 9e8bf75 commit 9a05abe

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ jobs:
2828
- name: Install fonttools
2929
run: pip install fonttools brotli
3030

31+
- name: Download font file
32+
run: |
33+
mkdir -p fonts-source
34+
echo "📥 下载思源宋体字体文件..."
35+
# 从 GitHub 直接下载 Noto Serif SC Regular TTF
36+
curl -L "https://github.com/google/fonts/raw/main/ofl/notoserifsc/NotoSerifSC-Regular.ttf" \
37+
-o fonts-source/NotoSerifSC-Regular.ttf || {
38+
echo "❌ 字体文件下载失败"
39+
exit 1
40+
}
41+
ls -lh fonts-source/
42+
echo "✅ 字体文件下载完成"
43+
3144
- name: Install dependencies
3245
run: bun install
3346
# edgeone CLI 已包含在 devDependencies 中
@@ -37,7 +50,7 @@ jobs:
3750

3851
- name: Generate font subset (post-build script)
3952
run: node scripts/subset-fonts.js
40-
continue-on-error: true # 如果字体子集化失败,不影响部署
53+
# 如果字体子集化失败,会终止整个流程(已移除 continue-on-error
4154

4255
- name: Verify build output
4356
run: |
14.1 MB
Binary file not shown.

packages/pure/components/basic/Footer.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { Icon as DevIcon } from 'astro-icon/components'
32
import config from 'virtual:config'
43
54
import { getPlatformLabel, hasIcon } from '../../libs/social'

0 commit comments

Comments
 (0)