name: Release # This file is registered in https://rubygems.org/gems/algolia/trusted_publishers to be able to publish new versions of the gem. on: push: branches: - main jobs: release: name: Publish runs-on: ubuntu-22.04 if: "startsWith(github.event.head_commit.message, 'chore: release')" permissions: id-token: write contents: write steps: - uses: actions/checkout@v4 - name: Install Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.3.6 bundler-cache: true - uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 with: await-release: false