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 wrappers when native libs are released automatically #428

Merged
merged 1 commit into from
May 23, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 1 addition & 5 deletions .github/workflows/release-dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: .NET (release)

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: ["main", "v?.*"]
types:
- completed

jobs:
package_nuget:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release-golang.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: "Golang (release)"

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: ["main", "v?.*"]
types:
- completed

jobs:
publish_go_tag:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Java (release)

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: [main, "v?.*"]
types:
- completed

jobs:
build:
Expand Down
36 changes: 34 additions & 2 deletions .github/workflows/release-libs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release Platform Libraries
name: "Release Platform Libraries"

on:
workflow_dispatch:
release:
types: [published]
types: [published, prereleased]

jobs:
publish_binaries_bundle:
Expand Down Expand Up @@ -33,3 +33,35 @@ jobs:
tag: ${{ env.RELEASE_VERSION }}
overwrite: true
body: "Okapi binaries bundle"

release-dotnet-wrapper:
uses: ./.github/workflows/release-dotnet.yaml
needs: publish_binaries_bundle

release-golang-wrapper:
uses: ./.github/workflows/release-golang.yaml
needs: publish_binaries_bundle

release-java-wrapper:
uses: ./.github/workflows/release-java.yaml
needs: publish_binaries_bundle

release-python-wrapper:
uses: ./.github/workflows/release-python.yaml
needs: publish_binaries_bundle

release-ruby-wrapper:
uses: ./.github/workflows/release-ruby.yaml
needs: publish_binaries_bundle

release-rust-wrapper:
uses: ./.github/workflows/release-rust.yaml
needs: publish_binaries_bundle

release-swift-wrapper:
uses: ./.github/workflows/release-swift.yaml
needs: publish_binaries_bundle

release-wasm-wrapper:
uses: ./.github/workflows/release-wasm.yaml
needs: publish_binaries_bundle
6 changes: 1 addition & 5 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: "Python (release)"

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: [main, "v?.*"]
types:
- completed

jobs:
release_pypi:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release-ruby.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Ruby (release)

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: [main, "v?.*"]
types:
- completed

jobs:
build:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release-rust.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: "Rust (release)"

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: ["main", "v?.*"]
types:
- completed

jobs:
homebrew:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release-swift.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: "Swift (release)"

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: ["main", "v?.*"]
types:
- completed

jobs:
xcframework:
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release-wasm.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: "Wasm (release)"

on:
workflow_call:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
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
workflow_run:
workflows: ["Release Platform Libraries"]
branches: ["main", "v?.*"]
types:
- completed
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

jobs:
publish_npm:
Expand Down