Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,70 @@ on:
permissions:
contents: write
pull-requests: write
actions: write

jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

steps:
- name: Release Please
id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

trigger-release-workflows:
name: Trigger Release Workflows
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest

steps:
- name: Trigger GitHub Release (binaries)
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'release.yml',
ref: 'master',
inputs: {
tag_name: '${{ needs.release-please.outputs.tag_name }}'
}
});

- name: Trigger NuGet Release
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'nuget-release.yml',
ref: 'master',
inputs: {
tag_name: '${{ needs.release-please.outputs.tag_name }}'
}
});

- name: Trigger Docker Release
uses: actions/github-script@v7
with:
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'docker-release.yml',
ref: 'master',
inputs: {
tag_name: '${{ needs.release-please.outputs.tag_name }}'
}
});
Loading