From 6cb9baa65fd4b83ef4b75c330ecd806224a0f425 Mon Sep 17 00:00:00 2001 From: David Genord II Date: Mon, 20 May 2024 14:27:27 -0400 Subject: [PATCH] Add workflow for gem publishing --- .github/workflows/publish_gem.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish_gem.yml diff --git a/.github/workflows/publish_gem.yml b/.github/workflows/publish_gem.yml new file mode 100644 index 0000000..c526178 --- /dev/null +++ b/.github/workflows/publish_gem.yml @@ -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