Skip to content

Commit 2b234f7

Browse files
committed
1 parent 2aa6078 commit 2b234f7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release_capi.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
on:
2+
push:
3+
branches: [main]
24
release:
35
types: [published]
46
pull_request:
57
types: [labeled]
68
name: Append C-API artifact to latest release
79
jobs:
810
deploy_linux_binaries:
9-
if: ${{ github.event.label.name == 'test-release-process' || github.event_name == 'release' }}
11+
if: ${{ github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
1012
runs-on: ubuntu-20.04
1113
env:
1214
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -35,7 +37,7 @@ jobs:
3537
omitNameDuringUpdate: true
3638
omitPrereleaseDuringUpdate: true
3739
deploy_windows_binaries:
38-
if: ${{ github.event.label.name == 'test-release-process' || github.event_name == 'release' }}
40+
if: ${{ github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
3941
runs-on: windows-2019
4042
steps:
4143
- id: latest-release
@@ -62,7 +64,7 @@ jobs:
6264
omitNameDuringUpdate: true
6365
omitPrereleaseDuringUpdate: true
6466
deploy_macos_binaries:
65-
if: ${{ github.event.label.name == 'test-release-process' || github.event_name == 'release' }}
67+
if: ${{ github.event.label.name == 'test-release-process' || (github.event_name == 'release' && github.event.action == 'published') }}
6668
runs-on: macos-12
6769
steps:
6870
- id: latest-release

0 commit comments

Comments
 (0)