Skip to content

Commit

Permalink
Add PHP generator (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucarion authored Nov 18, 2024
1 parent a235e83 commit 33aa2f0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/php-sdk.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33aa2f0

Please sign in to comment.