From adec2be8c9776ce45de8e2946003ac96838d5139 Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Fri, 22 Dec 2023 18:59:39 +0100 Subject: [PATCH] configure-rubygems-credentials manually rubygems/release-gem@v1 is a bit broken (last step, await) also try without bundler's "rake release" task trigger on tag push --- .github/workflows/release.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 309551e..ff9c747 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,9 @@ name: RubyGems.org Release on: + push: + tags: + - v* workflow_dispatch: jobs: @@ -8,14 +11,15 @@ jobs: 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/configure-rubygems-credentials@v1.0.0 + - run: gem build slenips.gemspec + - run: gem install ./slenips-*.gem + - run: gem push ./slenips-*.gem