Skip to content

Commit 575781a

Browse files
committed
set up v15 workflow
1 parent fa0d729 commit 575781a

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
name: Generate
2-
32
on:
43
workflow_dispatch:
54
inputs:
65
force:
7-
description: "Force the generation of the SDKs"
6+
description: Force generation of SDKs
87
type: boolean
98
default: false
109
schedule:
1110
- cron: 0 0 * * *
12-
1311
jobs:
1412
generate:
15-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
13+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
1614
with:
17-
speakeasy_version: latest
18-
openapi_doc_location: https://docs.speakeasyapi.dev/openapi.yaml
19-
languages: |-
20-
- csharp
21-
publish_csharp: true
2215
force: ${{ github.event.inputs.force }}
23-
create_release: true
16+
mode: pr
17+
speakeasy_version: latest
2418
secrets:
2519
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2620
nuget_api_key: ${{ secrets.NUGET_API_KEY }}

.github/workflows/sdk_publish.yaml

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

.speakeasy/workflow.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
3+
sources:
4+
speakeasy:
5+
inputs:
6+
- location: https://docs.speakeasyapi.dev/openapi.yaml
7+
targets:
8+
speakeasy-client-sdk-csharp:
9+
target: csharp
10+
source: speakeasy

0 commit comments

Comments
 (0)