Skip to content

Commit 621ec10

Browse files
Merge pull request #216 from clerk/dc-speakeasy-trusted-publishing
chore(ci): Use Speakeasy Trusted Publisher feature
2 parents 01b8a7b + 300cd2b commit 621ec10

File tree

4 files changed

+6
-42
lines changed

4 files changed

+6
-42
lines changed

.github/workflows/pypi_mint_token.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permissions:
55
pull-requests: write
66
statuses: write
77
id-token: write
8-
on:
8+
"on":
99
workflow_dispatch:
1010
inputs:
1111
force:
@@ -18,10 +18,7 @@ on:
1818
schedule:
1919
- cron: 0 0 * * *
2020
jobs:
21-
mint_pypi_token:
22-
uses: ./.github/workflows/pypi_mint_token.yaml
2321
generate:
24-
needs: mint_pypi_token
2522
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
2623
with:
2724
force: ${{ github.event.inputs.force }}
@@ -30,5 +27,4 @@ jobs:
3027
speakeasy_version: latest
3128
secrets:
3229
github_access_token: ${{ secrets.GITHUB_TOKEN }}
33-
pypi_token: ${{ needs.mint_pypi_token.outputs.pypi_token }}
3430
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ permissions:
55
pull-requests: write
66
statuses: write
77
id-token: write
8-
on:
8+
"on":
99
push:
1010
branches:
1111
- main
1212
paths:
13-
- RELEASES.md
14-
- '*/RELEASES.md'
13+
- .speakeasy/gen.lock
1514
jobs:
16-
mint_pypi_token:
17-
uses: ./.github/workflows/pypi_mint_token.yaml
1815
publish:
19-
needs: mint_pypi_token
2016
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
with:
18+
target: clerk-sdk-python
2119
secrets:
2220
github_access_token: ${{ secrets.GITHUB_TOKEN }}
23-
pypi_token: ${{ needs.mint_pypi_token.outputs.pypi_token }}
2421
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ targets:
1717
output: .
1818
publish:
1919
pypi:
20-
token: $pypi_token
20+
useTrustedPublishing: true
2121
codeSamples:
2222
registry:
2323
location: registry.speakeasyapi.dev/clerk/clerk/clerk-openapi-python-code-samples

0 commit comments

Comments
 (0)