diff --git a/.github/workflows/python-sdk.yml b/.github/workflows/python-sdk.yml new file mode 100644 index 0000000..55fe41b --- /dev/null +++ b/.github/workflows/python-sdk.yml @@ -0,0 +1,29 @@ +name: Release Python SDK + +on: + workflow_dispatch: + inputs: + version: + description: "The version of the SDK that you would like to release" + required: true + type: string + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup node + uses: actions/setup-node@v4 + + - name: Download Fern + run: npm install -g fern-api + + - name: Release SDKs + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + FERN_PYPI_TOKEN: ${{ secrets.FERN_PYPI_TOKEN }} + run: | + fern generate --group python-sdk --version ${{ inputs.version }} --log-level debug \ No newline at end of file diff --git a/.gitignore b/.gitignore index fada48b..4ae2088 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ compiled/ # Rubymine .idea + +# Fern preview files +/fern/.preview diff --git a/fern/generators.yml b/fern/generators.yml index b6aa9d5..2011ebe 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -64,3 +64,20 @@ groups: client-class-name: Intercom inline-path-parameters: true enable-forward-compatible-enums: true + + python-sdk: + generators: + - name: fernapi/fern-python-sdk + version: 4.22.0 + github: + mode: pull-request + repository: intercom/intercom-python + config: + client_class_name: Intercom + pydantic_config: + skip_validation: true + output: + location: pypi + package-name: 'intercom-python' + token: ${FERN_PYPI_TOKEN} +