From 7864df504f82d71318c8f36dcee8ce6758b1bf6b Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 4 Dec 2024 17:00:28 +0900 Subject: [PATCH] ci release: add support for trusted publisher --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af24b00ded..9961418e97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/configure-rubygems-credentials@v1.0.0 + - name: Push gems + run: | + rake release:rubygem_push