Skip to content

Commit 156152a

Browse files
release actions should just be called whenever we release new binaries (#428)
1 parent 924db1d commit 156152a

9 files changed

Lines changed: 43 additions & 43 deletions

.github/workflows/release-dotnet.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: .NET (release)
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: ["main", "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
package_nuget:

.github/workflows/release-golang.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: "Golang (release)"
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: ["main", "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
publish_go_tag:

.github/workflows/release-java.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Java (release)
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: [main, "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
build:

.github/workflows/release-libs.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Release Platform Libraries
1+
name: "Release Platform Libraries"
22

33
on:
44
workflow_dispatch:
55
release:
6-
types: [published]
6+
types: [published, prereleased]
77

88
jobs:
99
publish_binaries_bundle:
@@ -33,3 +33,35 @@ jobs:
3333
tag: ${{ env.RELEASE_VERSION }}
3434
overwrite: true
3535
body: "Okapi binaries bundle"
36+
37+
release-dotnet-wrapper:
38+
uses: ./.github/workflows/release-dotnet.yaml
39+
needs: publish_binaries_bundle
40+
41+
release-golang-wrapper:
42+
uses: ./.github/workflows/release-golang.yaml
43+
needs: publish_binaries_bundle
44+
45+
release-java-wrapper:
46+
uses: ./.github/workflows/release-java.yaml
47+
needs: publish_binaries_bundle
48+
49+
release-python-wrapper:
50+
uses: ./.github/workflows/release-python.yaml
51+
needs: publish_binaries_bundle
52+
53+
release-ruby-wrapper:
54+
uses: ./.github/workflows/release-ruby.yaml
55+
needs: publish_binaries_bundle
56+
57+
release-rust-wrapper:
58+
uses: ./.github/workflows/release-rust.yaml
59+
needs: publish_binaries_bundle
60+
61+
release-swift-wrapper:
62+
uses: ./.github/workflows/release-swift.yaml
63+
needs: publish_binaries_bundle
64+
65+
release-wasm-wrapper:
66+
uses: ./.github/workflows/release-wasm.yaml
67+
needs: publish_binaries_bundle

.github/workflows/release-python.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: "Python (release)"
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: [main, "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
release_pypi:

.github/workflows/release-ruby.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: Ruby (release)
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: [main, "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
build:

.github/workflows/release-rust.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: "Rust (release)"
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: ["main", "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
homebrew:

.github/workflows/release-swift.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: "Swift (release)"
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
910
default: ''
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: ["main", "v?.*"]
13-
types:
14-
- completed
1511

1612
jobs:
1713
xcframework:

.github/workflows/release-wasm.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
name: "Wasm (release)"
22

33
on:
4+
workflow_call:
45
workflow_dispatch:
56
inputs:
67
packageVersion:
78
description: 'Version to build'
89
required: true
9-
default: '' # For beta release: v1.0.0-beta.N N=beta number https://kevinkreuzer.medium.com/publishing-a-beta-or-alpha-version-to-npm-46035b630dd7
10-
workflow_run:
11-
workflows: ["Release Platform Libraries"]
12-
branches: ["main", "v?.*"]
13-
types:
14-
- completed
10+
default: '' # For beta release: v1.0.0-rc[N] N=release candidate number https://kevinkreuzer.medium.com/publishing-a-beta-or-alpha-version-to-npm-46035b630dd7
1511

1612
jobs:
1713
publish_npm:

0 commit comments

Comments
 (0)