Skip to content

Commit 5ab23f0

Browse files
workos-sdk-automation[bot]gjtorikianclaude
authored
Fix release workflow to use OIDC credentials directly (#429)
Replace rubygems/release-gem with manual build and push to avoid the rake release task attempting git operations (which fails due to insufficient permissions in the publish job). - Use rubygems/configure-rubygems-credentials for OIDC auth - Run rake build to create the gem without git operations - Push directly with gem push Co-authored-by: Garen J. Torikian <[email protected]> Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent c3b8418 commit 5ab23f0

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
runs-on: ubuntu-latest
1717
permissions:
1818
contents: write
19+
outputs:
20+
version: ${{ steps.get-version.outputs.version }}
1921
steps:
2022
- name: Generate token
2123
id: generate-token
@@ -51,6 +53,11 @@ jobs:
5153
id-token: write
5254
contents: read
5355
steps:
56+
- name: Configure RubyGems credentials
57+
uses: rubygems/configure-rubygems-credentials@main
58+
with:
59+
role-to-assume: rg_oidc_akr_fn8dx45asckvmsnd2kka
60+
5461
- name: Checkout
5562
uses: actions/checkout@v6
5663

@@ -64,6 +71,6 @@ jobs:
6471
run: bundle exec rspec
6572

6673
- name: Publish to RubyGems
67-
uses: rubygems/release-gem@v1
68-
with:
69-
gem-push-command: bundle exec rake build release:rubygem_push
74+
run: |
75+
bundle exec rake build
76+
gem push pkg/workos-${{ needs.create-release.outputs.version }}.gem --host https://rubygems.org

0 commit comments

Comments
 (0)