4 Commits

Author SHA1 Message Date
nan
45da857241 Update wiki
All checks were successful
Deploy to Aliyun OSS / deploy (push) Successful in 30s
2026-04-22 15:16:45 +08:00
nan
5e81cc3c25 fix: update tag format in deploy workflow and script to use 'wiki/' instead of 'wiki-' 2026-04-22 15:16:09 +08:00
nan
016882439b fix: adjust LFS pull command to exclude unnecessary files 2026-04-22 13:15:42 +08:00
nan
a6886ac7f3 Update wiki
All checks were successful
Deploy to Aliyun OSS / deploy (push) Successful in 29s
2026-04-22 13:15:28 +08:00
5 changed files with 10 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ name: Deploy to Aliyun OSS
on:
push:
tags:
- "wiki-*" # 当推送 wiki-* 开头的 tag 时触发
- "wiki/**" # 当推送 wiki/** 开头的 tag 时触发
branches:
- "main" # 当推送 main 分支时触发
@@ -18,9 +18,9 @@ jobs:
# 判断触发类型
if [[ "${{ github.ref_type }}" == "tag" ]]; then
# Tag 触发:去掉 "wiki-" 前缀
# Tag 触发:去掉 "wiki/" 前缀
TAG_NAME=${{ github.ref_name }}
CLEAN_TAG_NAME=${TAG_NAME#wiki-}
CLEAN_TAG_NAME=${TAG_NAME#wiki/}
BASE_PATH="/$REPO_NAME/$CLEAN_TAG_NAME/"
else
# Branch 触发:使用仓库名
@@ -42,7 +42,7 @@ jobs:
- name: Fetch wiki LFS files
run: |
git lfs install
git lfs pull --include wiki
git lfs pull --exclude= --include wiki
- name: Update VitePress base path
run: |

View File

@@ -18,8 +18,8 @@ BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
REMOTE_URL=$(git remote get-url origin)
REPO_NAME=$(basename -s .git "$REMOTE_URL")
# 拼接 Tag 名称:wiki-分支名
TAG_NAME="wiki-$BRANCH_NAME"
# 拼接 Tag 名称:wiki/分支名
TAG_NAME="wiki/$BRANCH_NAME"
echo "当前分支:$BRANCH_NAME"

View File

@@ -1,4 +1,4 @@
# 风风风
# safefsef
## 📚 最新内容

View File

@@ -1 +1 @@
![](/测试画板-1.canvas.png)
<Viewer src="/测试画板-1.canvas.png" />

Binary file not shown.