Skip to content

Commit 54c3b4e

Browse files
committed
introduce release all sdks workflow
1 parent 34bb222 commit 54c3b4e

File tree

7 files changed

+92
-0
lines changed

7 files changed

+92
-0
lines changed

.github/workflows/release-all.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release all SDKs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the Go SDK that you would like to release"
8+
required: true
9+
type: string
10+
11+
env:
12+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
13+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
14+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
15+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
16+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
17+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
18+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19+
20+
jobs:
21+
csharp:
22+
uses: ./.github/workflows/release-csharp-sdk.yml
23+
secrets: inherit
24+
with:
25+
version: ${{ inputs.version }}
26+
27+
go:
28+
uses: ./.github/workflows/release-go-sdk.yml
29+
secrets: inherit
30+
with:
31+
version: ${{ inputs.version }}
32+
33+
java:
34+
uses: ./.github/workflows/release-java-sdk.yml
35+
secrets: inherit
36+
with:
37+
version: ${{ inputs.version }}
38+
39+
python:
40+
uses: ./.github/workflows/release-python-sdk.yml
41+
secrets: inherit
42+
with:
43+
version: ${{ inputs.version }}
44+
45+
ruby:
46+
uses: ./.github/workflows/release-ruby-sdk.yml
47+
secrets: inherit
48+
with:
49+
version: ${{ inputs.version }}
50+
51+
ts:
52+
uses: ./.github/workflows/release-ts-sdk.yml
53+
secrets: inherit
54+
with:
55+
version: ${{ inputs.version }}

.github/workflows/release-csharp-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release C# SDK
22

33
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "The version of the C# SDK that you would like to release"
8+
required: true
9+
type: string
410
workflow_dispatch:
511
inputs:
612
version:

.github/workflows/release-go-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release Go SDK
22

33
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "The version of the C# SDK that you would like to release"
8+
required: true
9+
type: string
410
workflow_dispatch:
511
inputs:
612
version:

.github/workflows/release-java-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release Java SDK
22

33
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "The version of the C# SDK that you would like to release"
8+
required: true
9+
type: string
410
workflow_dispatch:
511
inputs:
612
version:

.github/workflows/release-python-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release Python SDK
22

33
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "The version of the C# SDK that you would like to release"
8+
required: true
9+
type: string
410
workflow_dispatch:
511
inputs:
612
version:

.github/workflows/release-ruby-sdk.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release Ruby SDK
22

33
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "The version of the C# SDK that you would like to release"
8+
required: true
9+
type: string
410
workflow_dispatch:
511
inputs:
612
version:
@@ -29,6 +35,7 @@ jobs:
2935
- name: Release Ruby SDK
3036
env:
3137
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
38+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
3239
run: |
3340
if ${{ github.event.inputs.makePR }}; then
3441
fern generate --group ruby-sdk --version ${{ inputs.version }} --mode pull-request --log-level debug

.github/workflows/release-ts-sdk.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release TypeScript SDK
22

33
on:
4+
workflow_call:
5+
inputs:
6+
version:
7+
description: "The version of the C# SDK that you would like to release"
8+
required: true
9+
type: string
410
workflow_dispatch:
511
inputs:
612
version:

0 commit comments

Comments
 (0)