Skip to content

Commit 00f0f5d

Browse files
committed
add github action for publishing php sdk to github
1 parent 85ff964 commit 00f0f5d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/php-sdk.yml

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

0 commit comments

Comments
 (0)