generated from icrdr/omoolab-project
Compare commits
4 Commits
docs-deplo
...
wiki/docs-
| Author | SHA1 | Date | |
|---|---|---|---|
| 45da857241 | |||
| 5e81cc3c25 | |||
| 016882439b | |||
| a6886ac7f3 |
8
.github/workflows/deploy.yaml
vendored
8
.github/workflows/deploy.yaml
vendored
@@ -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: |
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 风风风
|
||||
# safefsef
|
||||
|
||||
## 📚 最新内容
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||

|
||||
<Viewer src="/测试画板-1.canvas.png" />
|
||||
BIN
wiki/public/测试画板-1.canvas.png
LFS
BIN
wiki/public/测试画板-1.canvas.png
LFS
Binary file not shown.
Reference in New Issue
Block a user