Skip to content

Commit a4b59a7

Browse files
authored
Expand NuGet publishing page (SDKs) (#794)
1 parent 2ad5fb6 commit a4b59a7

File tree

8 files changed

+265
-101
lines changed

8 files changed

+265
-101
lines changed

examples/sdks/csharp-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish C# SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the C# 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@v4
17+
18+
- name: Install Fern CLI
19+
run: npm install -g fern-api
20+
21+
- name: Release C# SDK
22+
env:
23+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
24+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
25+
run: |
26+
fern generate --group csharp-sdk --version ${{ inputs.version }} --log-level debug

examples/sdks/generators.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,25 @@ groups:
3131
version: 4.28.0
3232
output:
3333
location: pypi
34-
package-name: devin-new-test-package
34+
package-name: your-test-package-name
3535
token: ${PYPI_TOKEN}
3636
config:
37-
client_class_name: MyClientNameDevin
37+
client_class_name: YourClientName
3838
github:
39-
repository: devalog/company-python-test
39+
repository: your-company/python-sdk
4040
mode: pull-request
41+
# This group configures a .NET/C# SDK for NuGet publishing
42+
csharp-sdk: # group name
43+
generators:
44+
- name: fernapi/fern-csharp-sdk
45+
version: 2.1.15
46+
output:
47+
location: nuget
48+
package-name: YourTestPackageName
49+
api-key: ${NUGET_API_KEY}
50+
config:
51+
client_class_name: YourClientName
52+
github:
53+
repository: your-company/csharp-sdk
54+
mode: release
4155
# generator groups for other SDKs go here
81.3 KB
Loading
47.8 KB
Loading

0 commit comments

Comments
 (0)