Skip to content

Commit

Permalink
Merge pull request #14 from collectiveidea/dg/setup-trusted-publishing
Browse files Browse the repository at this point in the history
Add workflow for gem publishing
  • Loading branch information
albus522 authored May 20, 2024
2 parents ec8b2a4 + 6cb9baa commit 192e781
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish_gem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Gem

on:
push:
tags:
- v*

jobs:
push:
if: github.repository == 'collectiveidea/twirp-rails'
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

# Release
- uses: rubygems/release-gem@v1

0 comments on commit 192e781

Please sign in to comment.