RubyGems #1
Workflow file for this run
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
# Builds and pushes a gem to RubyGems. | |
name: RubyGems | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
# If you configured a GitHub environment on RubyGems, you must use it here. | |
environment: release | |
steps: | |
# Set up | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
ruby-version: ruby | |
# Release | |
- uses: rubygems/release-gem@v1 |