Skip to content

Commit 142a19f

Browse files
committed
ci: fix publish workflow permissions for OIDC
1 parent 959f118 commit 142a19f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/publish_gem.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
environment: rubygems
1313

1414
permissions:
15-
contents: read
16-
id-token: write # for trusted publishing (rubygems OIDC)
15+
contents: write # required for rake release to push the git tag
16+
id-token: write # required for OIDC trusted publishing
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -26,8 +26,5 @@ jobs:
2626
- name: Run tests before publishing
2727
run: bundle exec rake test
2828

29-
- name: Build gem
30-
run: gem build octaspace.gemspec
31-
32-
- name: Push to RubyGems
29+
- name: Release gem
3330
uses: rubygems/release-gem@v1

0 commit comments

Comments
 (0)