File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments