Skip to content

Commit 712186b

Browse files
authored
Merge pull request #52 from Ryanf55/bugfix/51-gh-pages-permissions
CI: Split docs workflows and add write permissions for pages deployment
2 parents 58f6052 + 44cccb0 commit 712186b

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

.github/workflows/build_test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ jobs:
1717
- {rosdistro: 'humble', container: 'osrf/ros:humble-desktop'}
1818
container: ${{ matrix.config.container }}
1919
steps:
20-
- uses: actions/checkout@v1
21-
with:
22-
token: ${{ secrets.ACCESS_TOKEN }}
23-
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: actions/checkout@v4
2421
- name: Install Dependencies
2522
working-directory:
2623
run: |

.github/workflows/check_style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- 'px4io/px4-dev-simulation-focal:2020-09-14'
1919
container: ${{ matrix.container }}
2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v4
2222
- name: submodule update
2323
run: git submodule update --init --recursive
2424
- name: Install clang-format
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Doxygen Build
2+
on:
3+
push:
4+
branches:
5+
- 'ros2'
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: mattnotmitt/[email protected]
18+
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
name: Build Test
1+
name: Doxygen Deploy to GH Pages
22
on:
33
push:
4-
pull_request:
54
branches:
6-
- '*'
5+
- 'ros2'
76

87
jobs:
98
build:
109
runs-on: ubuntu-latest
1110
strategy:
1211
fail-fast: false
12+
permissions:
13+
contents: write
1314
steps:
14-
- uses: actions/checkout@v4
15-
- uses: mattnotmitt/[email protected]
15+
- uses: ./.github/workflows/doxygen_build.yml
1616
- uses: peaceiris/actions-gh-pages@v3
1717
with:
1818
github_token: ${{ secrets.GITHUB_TOKEN }}
19-
publish_dir: ./html
20-
19+
publish_dir: ./html

0 commit comments

Comments
 (0)