Merge pull request #109 from maxmind/nobeid/github-actions-zizmor #72
This file contains 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@v4 | |
with: | |
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@refs/heads/v1 | |
with: | |
ruby-version: ruby | |
# 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@refs/heads/v1 |