Skip to content

Commit d19dd27

Browse files
committed
Release 0.1.6 with Rakefile and workflow
* Set permissions.id-token to write * Add comment noting official action usage for gem publishing * Use rubygems/release-gem@v1 in the release workflow * Add changelog entry for 0.1.6 dated 2025-10-31 describing Rakefile integration and release/task workflow refactors * Add Rakefile that requires bundler/gem_tasks, defines RSpec and RuboCop rake tasks, and sets default task to run spec and rubocop * Bump DomainExtractor::VERSION to '0.1.6'
1 parent f7e5577 commit d19dd27

File tree

5 files changed

+23
-19
lines changed

5 files changed

+23
-19
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ on:
77

88
permissions:
99
contents: write
10-
id-token: write # REQUIRED for trusted publishing
10+
id-token: write
1111

1212
jobs:
1313
release:
1414
runs-on: ubuntu-latest
15-
# Uncomment if you set an environment name in Step 1
16-
# environment: production
1715

1816
steps:
1917
- uses: actions/checkout@v4
@@ -24,17 +22,5 @@ jobs:
2422
ruby-version: "3.3"
2523
bundler-cache: true
2624

27-
- name: Build gem
28-
run: gem build *.gemspec
29-
30-
- name: Create GitHub Release
31-
run: |
32-
gh release create ${{ github.ref_name }} \
33-
--title "${{ github.ref_name }} - Release" \
34-
--generate-notes \
35-
*.gem
36-
env:
37-
GH_TOKEN: ${{ github.token }}
38-
39-
- name: Publish to RubyGems via Trusted Publishing
40-
uses: rubygems/release-gem@v1
25+
# Just use the official action - it does everything!
26+
- uses: rubygems/release-gem@v1

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.1.6] - 2025-10-31
11+
12+
### Integrate Rakefile for Release and Task Workflow Refactors
13+
14+
Refactored release action workflow along with internal task automation with Rakefile build out.
15+
1016
## [0.1.4] - 2025-10-31
1117

1218
### Updated release action workflow

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
domain_extractor (0.1.5)
4+
domain_extractor (0.1.6)
55
public_suffix (~> 6.0)
66

77
GEM

Rakefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
require 'bundler/gem_tasks'
4+
require 'rspec/core/rake_task'
5+
6+
RSpec::Core::RakeTask.new(:spec)
7+
8+
require 'rubocop/rake_task'
9+
10+
RuboCop::RakeTask.new
11+
12+
task default: %i[spec rubocop]

lib/domain_extractor/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module DomainExtractor
4-
VERSION = '0.1.5'
4+
VERSION = '0.1.6'
55
end

0 commit comments

Comments
 (0)