Skip to content

Commit

Permalink
Change to two separate workflows
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Ryanf55 committed Jan 18, 2024
1 parent d5ee932 commit d7aa3c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html

17 changes: 17 additions & 0 deletions .github/workflows/doxygen_deploy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d7aa3c2

Please sign in to comment.