Skip to content

Commit

Permalink
configure-rubygems-credentials manually
Browse files Browse the repository at this point in the history
rubygems/release-gem@v1 is a bit broken (last step, await)
also try without bundler's "rake release" task
trigger on tag push
  • Loading branch information
dentarg committed Dec 22, 2023
1 parent 932a14b commit adec2be
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: RubyGems.org Release

on:
push:
tags:
- v*
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
id-token: write # for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- uses: rubygems/release-gem@v1
- uses: rubygems/[email protected]
- run: gem build slenips.gemspec
- run: gem install ./slenips-*.gem
- run: gem push ./slenips-*.gem

0 comments on commit adec2be

Please sign in to comment.