From 33aa2f0928a11a1ad29b64f35e84e3030f9812a8 Mon Sep 17 00:00:00 2001 From: Ulysse Carion Date: Mon, 18 Nov 2024 14:13:38 -0800 Subject: [PATCH] Add PHP generator (#93) --- .github/workflows/php-sdk.yml | 28 ++++++++++++++++++++++++++++ fern/generators.yml | 8 ++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/php-sdk.yml diff --git a/.github/workflows/php-sdk.yml b/.github/workflows/php-sdk.yml new file mode 100644 index 0000000..08e0dc8 --- /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 PHP 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@v3 + + - name: Download Fern + run: npm install -g fern-api + + - name: Release PHP SDK + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + fern generate --group php-sdk --version ${{ inputs.version }} --log-level debug diff --git a/fern/generators.yml b/fern/generators.yml index abdb373..a7740a6 100644 --- a/fern/generators.yml +++ b/fern/generators.yml @@ -102,6 +102,14 @@ groups: clientClassName: SSOReady smart-casing: true + php-sdk: + generators: + - name: fernapi/fern-php-sdk + version: 0.2.0 + github: + repository: ssoready/ssoready-php + smart-casing: true + local: generators: - name: fernapi/fern-python-sdk