Skip to content

Commit d9facb7

Browse files
committed
feat: add publish action
1 parent 0980f2c commit d9facb7

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ jobs:
2626
set_version: ${{ github.event.inputs.set_version }}
2727
secrets:
2828
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29+
pypi_token: ${{ secrets.PYPI_TOKEN }}
2930
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: documenso
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
@@ -10,6 +10,9 @@ targets:
1010
documenso:
1111
target: python
1212
source: documenso-OAS
13+
publish:
14+
pypi:
15+
token: $pypi_token
1316
codeSamples:
1417
registry:
1518
location: registry.speakeasyapi.dev/documenso-inc/api/documenso-oas-python-code-samples

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ The full Documenso API can be viewed here (**todo**), which includes examples.
1919

2020
Documenso v2 API and SDKs are currently in beta. There may be to breaking changes.
2121

22-
To keep updated, please follow the discussions and issues here:
23-
- Discussion -> Todo
24-
- Breaking change alerts -> Todo
22+
To keep updated, please follow the discussions here:
23+
- [Feedback](https://github.com/documenso/documenso/discussions/1611)
24+
- [Breaking change alerts](https://github.com/documenso/documenso/discussions/1612)
2525
<!-- No Summary [summary] -->
2626

2727
## Table of Contents

0 commit comments

Comments
 (0)