Skip to content

Commit 7168844

Browse files
authored
chore: split generation and publish in two workflows (PR#3)
2 parents bba6a58 + 0e4907f commit 7168844

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/generation.yml renamed to .github/workflows/sdk_generation.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ jobs:
1414
generate:
1515
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
1616
with:
17-
speakeasy_version: latest
18-
openapi_doc_location: https://docs.speakeasyapi.dev/openapi.yaml
19-
languages: |-
20-
- csharp
21-
publish_csharp: true
2217
force: ${{ github.event.inputs.force }}
23-
create_release: true
18+
mode: pr
19+
speakeasy_version: latest
2420
secrets:
2521
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2622
nuget_api_key: ${{ secrets.NUGET_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
jobs:
8+
publish:
9+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
10+
secrets:
11+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
12+
nuget_api_key: ${{ secrets.NUGET_API_KEY }}
13+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

0 commit comments

Comments
 (0)