Fix LFS file fetching and update paths for wiki in deploy workflow

This commit is contained in:
2026-04-21 22:01:28 +08:00
parent 78e6a05888
commit fbcbcd3565

View File

@@ -39,14 +39,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- name: Fetch docs LFS files
- name: Fetch wiki LFS files
run: |
git lfs install
git lfs pull --include docs
git lfs pull --include wiki
- name: Update VitePress base path
run: |
sed -i "s|base: '.*'|base: '$BASE_PATH'|g" docs/.vitepress/config.mts
sed -i "s|base: '.*'|base: '$BASE_PATH'|g" wiki/.vitepress/config.mts
echo "Updated base path to: $BASE_PATH"
- name: Install pnpm
@@ -58,7 +58,7 @@ jobs:
run: pnpm install
- name: Build VitePress
run: pnpm docs:build
run: pnpm wiki:build
- name: Setup Aliyun CLI
run: |
@@ -76,6 +76,6 @@ jobs:
run: |
OSS_PATH=oss://${{ secrets.OSS_BUCKET }}$BASE_PATH
echo "Deploying to: $OSS_PATH"
aliyun oss cp docs/.vitepress/dist $OSS_PATH --recursive --update
aliyun oss cp wiki/.vitepress/dist $OSS_PATH --recursive --update
env:
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}