From 373fa5fd5d0440c95e5d7d89bb0a4a28058c34a9 Mon Sep 17 00:00:00 2001 From: Peter Yates Date: Tue, 3 Oct 2023 16:15:06 +0100 Subject: [PATCH] Add checkout, setup and gem install steps --- .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: