Skip to content

Commit 50b457a

Browse files
committed
adds publishing workflow
1 parent 3b93caf commit 50b457a

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
@@ -27,4 +27,5 @@ jobs:
2727
secrets:
2828
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2929
openapi_doc_auth_token: ${{ secrets.OPENAPI_DOC_AUTH_TOKEN }}
30+
pypi_token: ${{ secrets.PYPI_TOKEN }}
3031
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+
- gusto_embedded/.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: gusto
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
@@ -15,6 +15,9 @@ targets:
1515
target: python
1616
source: Gusto-OAS
1717
output: ./gusto_embedded
18+
publish:
19+
pypi:
20+
token: $pypi_token
1821
codeSamples:
1922
registry:
2023
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-oas-python-code-samples

0 commit comments

Comments
 (0)