generated from icrdr/omoolab-project
Fix LFS file fetching and update paths for wiki in deploy workflow
This commit is contained in:
10
.github/workflows/deploy.yaml
vendored
10
.github/workflows/deploy.yaml
vendored
@@ -39,14 +39,14 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Fetch docs LFS files
|
- name: Fetch wiki LFS files
|
||||||
run: |
|
run: |
|
||||||
git lfs install
|
git lfs install
|
||||||
git lfs pull --include docs
|
git lfs pull --include wiki
|
||||||
|
|
||||||
- name: Update VitePress base path
|
- name: Update VitePress base path
|
||||||
run: |
|
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"
|
echo "Updated base path to: $BASE_PATH"
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build VitePress
|
- name: Build VitePress
|
||||||
run: pnpm docs:build
|
run: pnpm wiki:build
|
||||||
|
|
||||||
- name: Setup Aliyun CLI
|
- name: Setup Aliyun CLI
|
||||||
run: |
|
run: |
|
||||||
@@ -76,6 +76,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
OSS_PATH=oss://${{ secrets.OSS_BUCKET }}$BASE_PATH
|
OSS_PATH=oss://${{ secrets.OSS_BUCKET }}$BASE_PATH
|
||||||
echo "Deploying to: $OSS_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:
|
env:
|
||||||
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}
|
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }}
|
||||||
|
|||||||
Reference in New Issue
Block a user