Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release created by GitHub actions won't trigger the "on release" event, so use the "workflow_run" instead. #303

Merged
merged 1 commit into from
Jul 4, 2024
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
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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading