Skip to content

Commit d7aa3c2

Browse files
committed
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 <[email protected]>
1 parent d5ee932 commit d7aa3c2

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
name: Doxygen Pages
1+
name: Doxygen Build
22
on:
33
push:
44
branches:
55
- 'ros2'
66
pull_request:
77
branches:
8-
- '*'
8+
- '*'
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
15-
permissions:
16-
contents: write
1715
steps:
1816
- uses: actions/checkout@v4
1917
- uses: mattnotmitt/[email protected]
20-
- uses: peaceiris/actions-gh-pages@v3
21-
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: ./html
2418

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Doxygen Deploy to GH Pages
2+
on:
3+
push:
4+
branches:
5+
- 'ros2'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
steps:
13+
- uses: ./.github/workflows/doxygen_build.yml
14+
- uses: peaceiris/actions-gh-pages@v3
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
publish_dir: ./html

0 commit comments

Comments
 (0)