From 119bf34ad6b9d6b911aa7b757596e164a700f2aa Mon Sep 17 00:00:00 2001 From: Peter Yates Date: Tue, 3 Oct 2023 17:42:25 +0100 Subject: [PATCH] Add checkout, setup and gem install steps (#29) I thought these steps were handled by the action but they aren't. Tested with an alpha `v0.2a` [release](https://rubygems.org/gems/govuk-rspec-helpers/versions/0.2a) and tag. --- .github/workflows/publish-gem.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/publish-gem.yml b/.github/workflows/publish-gem.yml index 2b0277b..829f109 100644 --- a/.github/workflows/publish-gem.yml +++ b/.github/workflows/publish-gem.yml @@ -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: