Skip to content

Commit f5dd2ab

Browse files
committed
fixup! feat(ci): add lychee broken link test
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 2978ec5 commit f5dd2ab

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/sphinxbuild.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,21 +208,22 @@ jobs:
208208
run: |
209209
# Remove old documentation for this branch
210210
rm -rf server/${{ steps.branch.outputs.branch_name }}
211+
mkdir -p server/${{ steps.branch.outputs.branch_name }}
211212
212-
# Move all documentation artifacts into the server directory
213-
mv artifacts/* server/ || true
213+
# Move each manual's HTML output into the branch directory structure
214+
mv artifacts/user_manual/* server/${{ steps.branch.outputs.branch_name }}/ || true
215+
mv artifacts/admin_manual/* server/${{ steps.branch.outputs.branch_name }}/ || true
216+
mv artifacts/developer_manual/* server/${{ steps.branch.outputs.branch_name }}/com/ || true
214217
215-
# Move PDF files to branch root
216-
mv server/*/*.pdf server/${{ steps.branch.outputs.branch_name }}/ || true
217-
218-
# For stable branches, also deploy to versioned folder (e.g., server/28/)
218+
# If this is the highest stable branch, also deploy to versioned folder (e.g., server/28/)
219219
if [ -n "${{ steps.branch.outputs.version_name }}" ]; then
220220
rm -rf server/${{ steps.branch.outputs.version_name }}
221221
cp -r server/${{ steps.branch.outputs.branch_name }} server/${{ steps.branch.outputs.version_name }}
222222
fi
223223
224-
# Clean up empty directories
224+
# Clean up empty directories and artifacts
225225
find . -type d -empty -delete
226+
rm -rf artifacts
226227
227228
- name: Add various redirects for go.php and user_manual english version
228229
run: |

0 commit comments

Comments
 (0)