Skip to content

Commit

Permalink
Add checkout to the publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Oct 3, 2023
1 parent 6ee1c0a commit ebf309a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ jobs:
name: Publish to RubyGems.org and GitHub Packages
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.4'

- name: Install gems
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Publish gem
uses: dawidd6/action-publish-gem@v1
with:
Expand Down

0 comments on commit ebf309a

Please sign in to comment.