From b436fbd3a5233618d46f2e15487ab4d833a0e63d Mon Sep 17 00:00:00 2001 From: Lloyd Watkin Date: Fri, 12 Apr 2024 09:25:57 +0100 Subject: [PATCH] Use RubyGem's official publish action https://github.com/segiddins/rubygems-await --- .github/workflows/publish.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b2c18b1..a53810d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,16 +5,21 @@ on: tags: - v* jobs: - build: + push: runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: - - uses: actions/checkout@v3 + # Set up + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: ruby - - name: Release GEM - if: contains(github.ref, 'refs/tags/v') - uses: cadwallion/publish-rubygems-action@master - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} - RELEASE_COMMAND: ./bin/release.sh \ No newline at end of file + # Release + - uses: rubygems/release-gem@v1