diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 324e25bf..dea02696 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,13 +4,15 @@ on: release: types: [published] -permissions: - contents: read # to checkout the code (actions/checkout) jobs: build: name: Publish to Rubygems runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + steps: - uses: actions/checkout@v4 @@ -20,6 +22,4 @@ jobs: ruby-version: 3 - name: Publish to RubyGems - uses: dawidd6/action-publish-gem@v1 - with: - api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}} + uses: rubygems/release-gem@v1