Skip to content

Commit 2bf486c

Browse files
committed
configure gem publishing
1 parent 4c47859 commit 2bf486c

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.github/workflows/sdk_generation.yaml

+1
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+
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
3031
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

+23
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-embedded
20+
secrets:
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
23+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ targets:
1717
target: ruby
1818
source: GustoEmbedded-OAS
1919
output: ./gusto_embedded
20+
publish:
21+
rubygems:
22+
token: $rubygems_auth_token
2023
codeSamples:
2124
registry:
2225
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-embedded-oas-code-samples

0 commit comments

Comments
 (0)