From 12b45b9da3093d0087d9c7c4d8792b1875d5c1b6 Mon Sep 17 00:00:00 2001 From: Gabriel Koppenstein <82903393+gab-k@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:27:19 +0100 Subject: [PATCH] Update doxygen-gh-pages.yml --- .github/workflows/doxygen-gh-pages.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doxygen-gh-pages.yml b/.github/workflows/doxygen-gh-pages.yml index 5f2b48c..f82c7f5 100644 --- a/.github/workflows/doxygen-gh-pages.yml +++ b/.github/workflows/doxygen-gh-pages.yml @@ -26,8 +26,12 @@ jobs: doxyfile-path: "./Doxyfile" # default is ./Doxyfile # Working directory working-directory: "." # default is . - - + + - name: Upload doxygen files as artifact + uses: actions/upload-artifact@v4 + with: + name: doxygen_files + path: html/ deploy-main: if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch @@ -35,6 +39,12 @@ jobs: needs: doxy-build steps: + - name: Download doxygen files artifact + uses: actions/download-artifact@v4 + with: + name: doxygen_files + path: html/ + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: @@ -43,6 +53,7 @@ jobs: # Change the directory if changes in Doxyfile publish_dir: ./html publish_branch: gh-pages + destination_dir: html deploy-dev: if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch @@ -50,6 +61,12 @@ jobs: needs: doxy-build steps: + - name: Download doxygen files artifact + uses: actions/download-artifact@v4 + with: + name: doxygen_files + path: html/ + - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: @@ -58,3 +75,4 @@ jobs: # Change the directory if changes in Doxyfile publish_dir: ./html publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case) + destination_dir: html