Skip to content

Commit 0572e7a

Browse files
committed
ran speakeasy configure publishing
1 parent e282d61 commit 0572e7a

File tree

2 files changed

+39
-37
lines changed

2 files changed

+39
-37
lines changed
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
name: Generate
22
permissions:
3-
checks: write
4-
contents: write
5-
pull-requests: write
6-
statuses: write
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
77
"on":
8-
workflow_dispatch:
9-
inputs:
10-
force:
11-
description: Force generation of SDKs
12-
type: boolean
13-
default: false
14-
push_code_samples_only:
15-
description: Force push only code samples from SDK generation
16-
type: boolean
17-
default: false
18-
set_version:
19-
description: optionally set a specific SDK version
20-
type: string
21-
target:
22-
description: 'optionally: set a specific target to generate, default is all'
23-
type: string
24-
schedule:
25-
- cron: 0 0 * * *
8+
workflow_dispatch:
9+
inputs:
10+
force:
11+
description: Force generation of SDKs
12+
type: boolean
13+
default: false
14+
push_code_samples_only:
15+
description: Force push only code samples from SDK generation
16+
type: boolean
17+
default: false
18+
set_version:
19+
description: optionally set a specific SDK version
20+
type: string
21+
target:
22+
description: 'optionally: set a specific target to generate, default is all'
23+
type: string
24+
schedule:
25+
- cron: 0 0 * * *
2626
jobs:
27-
generate:
28-
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
29-
with:
30-
force: ${{ github.event.inputs.force }}
31-
mode: pr
32-
push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }}
33-
set_version: ${{ github.event.inputs.set_version }}
34-
speakeasy_version: latest
35-
target: ${{ github.event.inputs.target }}
36-
secrets:
37-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
38-
npm_token: ${{ secrets.NPM_TOKEN }}
39-
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
27+
generate:
28+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
29+
with:
30+
force: ${{ github.event.inputs.force }}
31+
mode: pr
32+
push_code_samples_only: ${{ fromJSON(github.event.inputs.push_code_samples_only != '' && github.event.inputs.push_code_samples_only || 'false') }}
33+
set_version: ${{ github.event.inputs.set_version }}
34+
speakeasy_version: latest
35+
target: ${{ github.event.inputs.target }}
36+
secrets:
37+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
38+
npm_token: ${{ secrets.NPM_TOKEN }}
39+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@ permissions:
44
contents: write
55
pull-requests: write
66
statuses: write
7+
id-token: write
78
"on":
89
push:
910
branches:
1011
- main
1112
paths:
12-
- RELEASES.md
13-
- '*/RELEASES.md'
13+
- .speakeasy/gen.lock
1414
jobs:
1515
publish:
1616
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
with:
18+
target: bar-typescript
1719
secrets:
1820
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1921
npm_token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)