diff --git a/.github/workflows/php-sdk.yml b/.github/workflows/php-sdk.yml new file mode 100644 index 0000000..0c11959 --- /dev/null +++ b/.github/workflows/php-sdk.yml @@ -0,0 +1,28 @@ +name: Release Php 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 }} + run: | + fern generate --group php-sdk --version ${{ inputs.version }} --log-level debug \ No newline at end of file diff --git a/fern/generators.yml b/fern/generators.yml index c94a36a..e7a112b 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -81,3 +81,23 @@ groups: package-name: 'python-intercom' token: ${FERN_PYPI_TOKEN} + php-sdk: + generators: + - name: fernapi/fern-php-sdk + version: 1.16.7 + github: + mode: pull-request + repository: intercom/intercom-php + smart-casing: true + config: + namespace: Intercom + clientName: IntercomClient + packageName: intercom/intercom-php + propertyAccess: private + inlinePathParameters: true + composerJson: + description: Intercom API client. + author: + name: Intercom Platform Team + url: https://www.intercom.com + homepage: https://developers.intercom.com/docs