-
Notifications
You must be signed in to change notification settings - Fork 77
61 lines (57 loc) · 1.91 KB
/
Copy pathcreate-sdk-releases.yml
File metadata and controls
61 lines (57 loc) · 1.91 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
name: create-sdk-releases
on:
workflow_dispatch:
inputs:
bump_type:
description: 'The type of version bump to make'
required: true
type: choice
options:
- 'major'
- 'minor'
- 'patch'
language:
description: 'If you want to just release a specific language'
type: choice
options:
- 'all'
- 'go'
- 'java'
- 'python'
- 'typescript'
version:
description: 'Set a specific version to release (disables "all" for language)'
required: false
type: string
jobs:
run:
if: vars.IS_PUBLIC_REPO == 'true'
runs-on: ubuntu-latest
environment: sdk-release
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Dependencies
shell: bash
run: pnpm install
- name: Run snippet tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_REPO: ${{ github.event.repository.name }}
BUMP_TYPE: ${{ github.event.inputs.bump_type }}
LANGUAGE: ${{ github.event.inputs.language }}
VERSION: ${{ github.event.inputs.version }}
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_CENTRAL_SECRET_KEY_KEY_ID: ${{ secrets.MAVEN_CENTRAL_SECRET_KEY_KEY_ID }}
MAVEN_CENTRAL_SECRET_KEY_PASSWORD: ${{ secrets.MAVEN_CENTRAL_SECRET_KEY_PASSWORD }}
MAVEN_CENTRAL_SECRET_KEY: ${{ secrets.MAVEN_CENTRAL_SECRET_KEY }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm run --filter autorelease release