Skip to content

Commit

Permalink
release actions should just be called whenever we release new binaries (
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus authored May 23, 2022
1 parent 924db1d commit 156152a
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 43 deletions.
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

0 comments on commit 156152a

Please sign in to comment.