Skip to content

GOnnect Release

GOnnect Release #47

Workflow file for this run

name: GOnnect Release
on:
workflow_dispatch: # can be manually dispatched under GitHub's "Actions" tab
inputs:
dryRun:
description: 'Dry run'
type: 'boolean'
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
EXT_BASE: ${{github.workspace}}
jobs:
semantic-release:
runs-on: ubuntu-24.04
name: Semantic Release
# A release will only be triggered on the release, freeze and hotfix branches.
if: github.ref == 'refs/heads/release' || startsWith(github.ref, 'refs/heads/freeze') || startsWith(github.ref, 'refs/heads/hotfix')
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Get token
id: get_token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_KEY }}
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
token: ${{ steps.get_token.outputs.token }}
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: "lts/*"
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y xmlstarlet jq
- name: Release
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
DRY_RUN_OPTION: ${{ inputs.dryRun == true && '--dry-run' || '' }}
run: npx --package=semantic-release --package=@semantic-release/changelog --package=@semantic-release/git --package=@semantic-release/exec -- semantic-release $DRY_RUN_OPTION