Skip to content

Merge pull request #43 from collectiveidea/tweak-github-publish-action #4

Merge pull request #43 from collectiveidea/tweak-github-publish-action

Merge pull request #43 from collectiveidea/tweak-github-publish-action #4

Workflow file for this run

name: Publish Gem
on:
push:
tags:
- v*
jobs:
push:
if: github.repository == 'collectiveidea/protoc-gen-twirp_ruby'
runs-on: ubuntu-latest
environment: publishing
permissions:
contents: write
id-token: write
steps:
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby
- name: Configure trusted publishing credentials
uses: rubygems/configure-rubygems-credentials@v1.0.0
- name: Build and Release to RubyGems
run: bundle exec rake build release:rubygem_push