3 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
4 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

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

Binary file not shown.