Skip to content

Commit

Permalink
Use RubyGem's official publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydwatkin authored Apr 12, 2024
1 parent 142d4db commit b436fbd
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ on:
tags:
- v*
jobs:
build:
push:
runs-on: ubuntu-latest

permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v3
# Set up
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

- name: Release GEM
if: contains(github.ref, 'refs/tags/v')
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: ./bin/release.sh
# Release
- uses: rubygems/release-gem@v1

0 comments on commit b436fbd

Please sign in to comment.