Skip to content

Commit

Permalink
Release created by GitHub actions won't trigger the "on release" even…
Browse files Browse the repository at this point in the history
…t, so use the "workflow_run" instead.

See https://github.com/orgs/community/discussions/25281
  • Loading branch information
thomaskrause committed Jul 4, 2024
1 parent c25c767 commit ef337ff
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release_capi.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
on:
push:
branches: [main]
release:
types: [published]
workflow_run:
workflows:
- Release
types:
- completed
pull_request:
types: [labeled]
name: Append C-API artifact to latest release
jobs:
deploy_linux_binaries:
if: ${{ github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
if: ${{ github.event.action == 'completed' || github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: ubuntu-20.04
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -37,7 +40,7 @@ jobs:
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
deploy_windows_binaries:
if: ${{ github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
if: ${{ github.event.action == 'completed' || github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: windows-2019
steps:
- id: latest-release
@@ -64,7 +67,7 @@ jobs:
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
deploy_macos_binaries:
if: ${{ github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
if: ${{ github.event.action == 'completed' || github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
runs-on: macos-12
steps:
- id: latest-release

0 comments on commit ef337ff

Please sign in to comment.