Skip to content

Push Gem

Push Gem #13

Workflow file for this run

name: Push Gem
on:
release:
types:
- published
permissions:
contents: read
jobs:
push:
if: github.repository == 'rubygems/configure_trusted_publisher'
runs-on: ubuntu-latest
environment:
name: rubygems.org
url: https://rubygems.org/gems/configure_trusted_publisher
permissions:
contents: write
id-token: write
steps:
# Set up
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
bundler-cache: true
ruby-version: ruby
# Release
- uses: rubygems/release-gem@e6d709aa18a7ef2f2d758411014ca0077aeac188