Skip to content

Commit c3a6b8e

Browse files
committed
add SDK publishing
1 parent e6b60e7 commit c3a6b8e

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ jobs:
3030
set_version: ${{ github.event.inputs.set_version }}
3131
secrets:
3232
github_access_token: ${{ secrets.GITHUB_TOKEN }}
33+
pypi_token: ${{ secrets.PYPI_TOKEN }}
3334
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
15+
jobs:
16+
publish:
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: bolt-sdk
20+
secrets:
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
pypi_token: ${{ secrets.PYPI_TOKEN }}
23+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ targets:
1111
bolt-sdk:
1212
target: python
1313
source: bolt-python-api
14+
publish:
15+
pypi:
16+
token: $pypi_token
1417
codeSamples:
1518
registry:
1619
location: registry.speakeasyapi.dev/bolt/boltpublicapi/bolt-python-api-code-samples

0 commit comments

Comments
 (0)