fix: resolve recursive copy error in deployment workflow and bump to 2.3.1

This commit is contained in:
Nubenetes Bot
2026-05-26 01:25:43 +02:00
parent 0035453719
commit 20804b469f

View File

@@ -35,18 +35,22 @@ jobs:
run: |
pip install -r requirements.txt
# 1. Build V1 (Root) - Preserves all legacy links for SEO
- name: Build V1 Edition
run: mkdocs build -f mkdocs.yml -d site/
# 1. Build V1 to a temporary staging area
- name: Build V1 Edition (Staging)
run: mkdocs build -f mkdocs.yml -d site_v1_temp/
# 2. Build V2 Elite Edition (/v2/)
# 2. Deploy V1 to Root (SEO) and /v1/ (Fallback)
- name: Deploy V1 to Root and Subdirectory
run: |
mkdir -p site/v1/
cp -r site_v1_temp/* site/
cp -r site_v1_temp/* site/v1/
rm -rf site_v1_temp/
# 3. Build V2 Elite Edition (/v2/)
- name: Build V2 Elite Edition
run: mkdocs build -f v2-mkdocs.yml -d site/v2/
# 3. Duplicate V1 to /v1/ - Provides an explicit path to the exhaustive archive
- name: Duplicate V1 to /v1/
run: cp -r site/ site/v1/
# 4. Inject Root Redirect to V2 - Human visitors land on V2 by default
- name: Inject Root Redirect to V2
run: |