Skip to content

Commit 29bfc36

Browse files
committed
Add publishing workflows
1 parent bb58d3e commit 29bfc36

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
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
speakeasy_version: latest
2727
secrets:
2828
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29+
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
2930
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
"on":
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- RELEASES.md
13+
- '*/RELEASES.md'
14+
jobs:
15+
publish:
16+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
secrets:
18+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
19+
rubygems_auth_token: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}
20+
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,3 +11,6 @@ targets:
1111
speakeasy-client-sdk:
1212
target: ruby
1313
source: SpeakeasyClientSDK-OAS
14+
publish:
15+
rubygems:
16+
token: $rubygems_auth_token

0 commit comments

Comments
 (0)