Skip to content

Commit

Permalink
ci: workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
natrad100 committed Aug 9, 2024
1 parent 1cfddf8 commit 41bb670
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ on:
inputs:
package:
type: choice
description: 'If not specified, all packages will be released.'
description: 'Package to release'
options:
- ""
- septentrio_gnss_driver
architecture:
type: choice
description: 'Architecture'
options:
- ""
- amd64
- arm64
force_release:
type: boolean
description: 'Force release'

jobs:
release:
Expand All @@ -20,15 +30,15 @@ jobs:
arch: amd64
ros_distro: iron
github_release: true
- runner: buildjet-2vcpu-ubuntu-2204-arm
- runner: buildjet-4vcpu-ubuntu-2204-arm
arch: arm64
ros_distro: iron
github_release: false
- runner: buildjet-2vcpu-ubuntu-2204
arch: amd64
ros_distro: jazzy
github_release: false
- runner: buildjet-2vcpu-ubuntu-2204-arm
- runner: buildjet-4vcpu-ubuntu-2204-arm
arch: arm64
ros_distro: jazzy
github_release: false
Expand All @@ -39,15 +49,17 @@ jobs:
steps:
- name: Checkout this repository
uses: actions/checkout@v3
if: ${{ github.event.inputs.architecture == matrix.job.arch || github.event.inputs.architecture == '' }}

- name: Semantic release
uses: Greenroom-Robotics/ros_semantic_release_action@main
if: ${{ github.event.inputs.architecture == matrix.job.arch || github.event.inputs.architecture == '' }}
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
package: ${{ github.event.inputs.package }}
arch: ${{ matrix.job.arch }}
ros_distro: ${{ matrix.job.ros_distro }}
github_release: ${{ matrix.job.github_release }}
github_release: ${{ matrix.job.github_release || github.event.inputs.force_release && matrix.job.distro == 'jazzy' }}
public: true
changelog: false

0 comments on commit 41bb670

Please sign in to comment.