Skip to content

Commit

Permalink
ci release: add support for trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 4, 2024
1 parent 2194f19 commit 7864df5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,23 @@ jobs:
--title "${title}"
env:
GH_TOKEN: ${{ github.token }}

rubygems:
name: RubyGems
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
id-token: write
environment: release
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Build gems
run: |
rake build
- uses: rubygems/[email protected]
- name: Push gems
run: |
rake release:rubygem_push

0 comments on commit 7864df5

Please sign in to comment.