Skip to content

Commit

Permalink
Merge pull request #490 from collectiveidea/trusted-publishing
Browse files Browse the repository at this point in the history
Trusted Publishing
  • Loading branch information
danielmorrison authored Nov 14, 2024
2 parents 8ad6f3c + 40eb61d commit 276a472
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/publish_gem.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/awesome_nested_set/version.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 276a472

Please sign in to comment.