diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff15708..7d6feb0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,10 +8,16 @@ on: jobs: build: 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 + steps: - - uses: actions/checkout@v3 - - name: Release Gem - uses: cadwallion/publish-rubygems-action@master - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: '3.4' + - uses: rubygems/release-gem@v1