From 3b16b12fe01acb9332a34e12f60834bbc27a1cda Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Thu, 19 Nov 2026 15:07:03 -0500 Subject: [PATCH 1/2] ci: pin Ruby for RubyGems publish and allow manual tag publish --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a135f85..08acdde 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,11 @@ on: branches: - main workflow_dispatch: + inputs: + tag: + description: "Existing release tag to publish to RubyGems (e.g. v3.9.1)" + required: false + type: string permissions: contents: read @@ -33,8 +38,8 @@ jobs: publish: name: Publish to RubyGems needs: release-please - if: needs.release-please.outputs.release_created == 'true' - runs-on: ubuntu-latest + if: needs.release-please.outputs.release_created == 'true' || inputs.tag != '' + runs-on: ubuntu-24.04 permissions: contents: write id-token: write @@ -42,12 +47,13 @@ jobs: steps: - uses: actions/checkout@v7 with: - ref: ${{ needs.release-please.outputs.tag_name }} + ref: ${{ inputs.tag || needs.release-please.outputs.tag_name }} - name: Set up Ruby uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 with: - ruby-version: ruby + # wasmtime has no prebuilt gem for Ruby 4.0 yet + ruby-version: "3.4" bundler-cache: true # The release tag already exists, so `rake release` skips tagging and only pushes the gem. From e2fe2634d8d0db67e27cc43e3ee6ab4513fbf950 Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Fri, 20 Nov 2026 16:08:54 -0500 Subject: [PATCH 2/2] ci: skip release-please on manual tag publish --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08acdde..b05d080 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,8 @@ jobs: # Uses GITHUB_TOKEN, so CI does not run on the release PR by itself. - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 id: release + # A manual tag publish must not create a newer release it then skips publishing. + if: inputs.tag == '' # RubyGems trusted publishing is tied to this workflow file, so publish stays here. publish: