From d7aa3c24a5d9f2d23f446d7c94c860e1b34d2eae Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Wed, 17 Jan 2024 21:44:11 -0700 Subject: [PATCH] Change to two separate workflows * Build runs like normal without the deploy * Deploy only runs on the ros2 branch * Reused workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows Signed-off-by: Ryan Friedman --- .../{doxygen.yml => doxygen_build.yml} | 10 ++-------- .github/workflows/doxygen_deploy.yml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 8 deletions(-) rename .github/workflows/{doxygen.yml => doxygen_build.yml} (54%) create mode 100644 .github/workflows/doxygen_deploy.yml diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen_build.yml similarity index 54% rename from .github/workflows/doxygen.yml rename to .github/workflows/doxygen_build.yml index 05a8de7..8190357 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen_build.yml @@ -1,24 +1,18 @@ -name: Doxygen Pages +name: Doxygen Build on: push: branches: - 'ros2' pull_request: branches: - - '*' + - '*' jobs: build: runs-on: ubuntu-latest strategy: fail-fast: false - permissions: - contents: write steps: - uses: actions/checkout@v4 - uses: mattnotmitt/doxygen-action@v1.9.5 - - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./html diff --git a/.github/workflows/doxygen_deploy.yml b/.github/workflows/doxygen_deploy.yml new file mode 100644 index 0000000..a53ac4d --- /dev/null +++ b/.github/workflows/doxygen_deploy.yml @@ -0,0 +1,17 @@ +name: Doxygen Deploy to GH Pages +on: + push: + branches: + - 'ros2' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: ./.github/workflows/doxygen_build.yml + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./html \ No newline at end of file