Merge pull request #116 from maxmind/dependabot/github_actions/ruby/s… #124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| push: | |
| if: github.event_name == 'release' && github.event.action == 'published' | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| persist-credentials: false | |
| # zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces. | |
| # specify that we want the v1 branch. | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # 1.267.0 | |
| with: | |
| ruby-version: ruby | |
| - run: bundle install | |
| # zizmor complains that 'v1' is a ref that can be provided by both the branch and tag namespaces. | |
| # specify that we want the v1 branch. | |
| - uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # 1.1.2 |