Skip to content

Commit

Permalink
Merge pull request #52 from Ryanf55/bugfix/51-gh-pages-permissions
Browse files Browse the repository at this point in the history
CI: Split docs workflows and add write permissions for pages deployment
  • Loading branch information
Ryanf55 authored Jan 20, 2024
2 parents 58f6052 + 44cccb0 commit 712186b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ jobs:
- {rosdistro: 'humble', container: 'osrf/ros:humble-desktop'}
container: ${{ matrix.config.container }}
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.ACCESS_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Install Dependencies
working-directory:
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- 'px4io/px4-dev-simulation-focal:2020-09-14'
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: submodule update
run: git submodule update --init --recursive
- name: Install clang-format
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/doxygen_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Doxygen Build
on:
push:
branches:
- 'ros2'
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: mattnotmitt/[email protected]

Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Build Test
name: Doxygen Deploy to GH Pages
on:
push:
pull_request:
branches:
- '*'
- 'ros2'

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: mattnotmitt/[email protected]
- uses: ./.github/workflows/doxygen_build.yml
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html

publish_dir: ./html

0 comments on commit 712186b

Please sign in to comment.