From 11875b1baae0e3e51ece23fcf7d34da2d484e1bf Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Thu, 14 Nov 2024 12:31:35 -0600 Subject: [PATCH 1/2] Add workflow for trusted publishing --- .github/workflows/publish_gem.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish_gem.yml diff --git a/.github/workflows/publish_gem.yml b/.github/workflows/publish_gem.yml new file mode 100644 index 0000000..3dadf93 --- /dev/null +++ b/.github/workflows/publish_gem.yml @@ -0,0 +1,28 @@ +name: Publish Gem + +on: + push: + tags: + - v* + +jobs: + push: + if: github.repository == 'collectiveidea/awesome_nested_set' + runs-on: ubuntu-latest + environment: publishing + + permissions: + contents: write + id-token: write + + steps: + # Set up + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: ruby + + # Release + - uses: rubygems/release-gem@v1 From 40eb61d63f51a3a67d7a67af1145d90bf9c8ac8f Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Thu, 14 Nov 2024 12:31:47 -0600 Subject: [PATCH 2/2] Update changelog and bump version --- CHANGELOG | 4 ++++ lib/awesome_nested_set/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 3636a21..7d91caf 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ Unreleased version +3.8.0 +* Support Rails 8.0 [Takuya N](https://github.com/collectiveidea/awesome_nested_set/pull/487) +* Enable Rubygems Trusted Publishing + 3.7.0 * Teach #move_to_child_of and #move_to_child_with_index to accept :root as a parameter [Micah Geisel](https://github.com/botandrose) * Add #roots method [Micah Geisel](https://github.com/botandrose) diff --git a/lib/awesome_nested_set/version.rb b/lib/awesome_nested_set/version.rb index 14a4e55..fdea8f6 100644 --- a/lib/awesome_nested_set/version.rb +++ b/lib/awesome_nested_set/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module AwesomeNestedSet - VERSION = '3.7.0' unless defined?(::AwesomeNestedSet::VERSION) + VERSION = '3.8.0' unless defined?(::AwesomeNestedSet::VERSION) end