diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 7257819ad6..35949045df 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 0 # Ensure full history is available for branch checkout - name: Install Doxygen and Dependencies run: sudo apt-get install -y doxygen graphviz texlive @@ -37,10 +37,10 @@ jobs: # Ensure the docs directory is prepared mkdir -p docs/$dest - # Move generated files to the correct directory - mv docs/* docs/$dest/ + # Move all generated files into the correct subdirectory + cp -r docs/* docs/$dest/ - # Clear out the previous docs for the next iteration + # Clean up to prepare for the next branch rm -rf docs/* echo "Generated docs for $branch, deployed to docs/$dest"