Skip to content

Commit a253db9

Browse files
fern-supportjsklan
andauthored
Add php sdk generator and release action (#283)
* add initial generator config * interim commit * updates * add github action for publishing php sdk to github * remove pypi token from php release action * update php-sdk generator config * fix ts config --------- Co-authored-by: jsklan <[email protected]>
1 parent aab7f6e commit a253db9

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/php-sdk.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release Php 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+
run: |
28+
fern generate --group php-sdk --version ${{ inputs.version }} --log-level debug

fern/generators.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,23 @@ groups:
8181
package-name: 'python-intercom'
8282
token: ${FERN_PYPI_TOKEN}
8383

84+
php-sdk:
85+
generators:
86+
- name: fernapi/fern-php-sdk
87+
version: 1.16.7
88+
github:
89+
mode: pull-request
90+
repository: intercom/intercom-php
91+
smart-casing: true
92+
config:
93+
namespace: Intercom
94+
clientName: IntercomClient
95+
packageName: intercom/intercom-php
96+
propertyAccess: private
97+
inlinePathParameters: true
98+
composerJson:
99+
description: Intercom API client.
100+
author:
101+
name: Intercom Platform Team
102+
url: https://www.intercom.com
103+
homepage: https://developers.intercom.com/docs

0 commit comments

Comments
 (0)