From fa02b6085815e8411a571cc383232f45aaa60741 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 9 May 2024 15:15:08 -0400 Subject: [PATCH 1/2] Bump version to 7.1.1 --- Gemfile.lock | 2 +- lib/rails-footnotes/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 429afe4..81879e3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rails-footnotes (7.1.0) + rails-footnotes (7.1.1) rails (~> 7.0) GEM diff --git a/lib/rails-footnotes/version.rb b/lib/rails-footnotes/version.rb index 7fe86c1..ba785ff 100644 --- a/lib/rails-footnotes/version.rb +++ b/lib/rails-footnotes/version.rb @@ -1,3 +1,3 @@ module Footnotes - VERSION = "7.1.0" + VERSION = "7.1.1" end From b94370c331599c876978065d7ced1821fd9295f7 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Thu, 9 May 2024 15:16:33 -0400 Subject: [PATCH 2/2] Add trusted publisher workflow --- .github/workflows/push_gem.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/push_gem.yml diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml new file mode 100644 index 0000000..40ad0c6 --- /dev/null +++ b/.github/workflows/push_gem.yml @@ -0,0 +1,33 @@ +name: Push Gem + +on: + workflow_dispatch: + +permissions: + contents: read + +jobs: + push: + if: github.repository == 'indirect/rails-footnotes' + runs-on: ubuntu-latest + + permissions: + contents: write + id-token: write + + steps: + # Set up + - name: Harden Runner + uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 + with: + egress-policy: audit + + - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 + - name: Set up Ruby + uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0 + with: + bundler-cache: true + ruby-version: ruby + + # Release + - uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1