-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (44 loc) · 1.36 KB
/
release-java-sdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release Java SDK
on:
workflow_call:
inputs:
makePR:
description: Make Pull Request
default: false
type: boolean
version:
description: "The version of the C# SDK that you would like to release"
required: true
type: string
workflow_dispatch:
inputs:
version:
description: "The version of the Java SDK that you would like to release"
required: true
type: string
makePR:
description: Make Pull Request
required: true
default: false
type: boolean
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
- name: Download Fern
run: npm install -g fern-api
- name: Release Java SDK
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
run: |
if [ "${{ github.event.inputs.makePR }}" = "true" ]; then
fern generate --api api --group java-sdk --version ${{ inputs.version }} --mode pull-request --log-level debug
else
fern generate --api api --group java-sdk --version ${{ inputs.version }} --log-level debug
fi