Skip to content

Commit 4e7bca3

Browse files
committed
change target and add github workflow
1 parent 68d8275 commit 4e7bca3

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/python-sdk.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Python SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the SDK that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup node
19+
uses: actions/setup-node@v4
20+
21+
- name: Download Fern
22+
run: npm install -g fern-api
23+
24+
- name: Release SDKs
25+
env:
26+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
27+
FERN_PYPI_TOKEN: ${{ secrets.FERN_PYPI_TOKEN }}
28+
run: |
29+
fern generate --group python-sdk --version ${{ inputs.version }} --log-level debug

fern/generators.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,13 @@ groups:
7171
version: 4.22.0
7272
github:
7373
mode: pull-request
74-
repository: fern-demo/intercom-python-sdk
74+
repository: intercom/intercom-python
7575
config:
7676
client_class_name: Intercom
7777
pydantic_config:
7878
skip_validation: true
79+
output:
80+
location: pypi
81+
package-name: 'intercom-python'
82+
token: ${FERN_PYPI_TOKEN}
83+

0 commit comments

Comments
 (0)