File tree Expand file tree Collapse file tree 4 files changed +49
-4
lines changed Expand file tree Collapse file tree 4 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Gem Release
3+
4+ on :
5+ push :
6+ tags :
7+ - ' *'
8+
9+ jobs :
10+ release :
11+ name : Release gem
12+ runs-on : ubuntu-24.04
13+ # Optional but recommended to use a specific environment
14+ environment : release
15+ # Prevent releases from forked repositories
16+ if : github.repository_owner == 'OpenVoxProject'
17+
18+ permissions :
19+ contents : write
20+
21+ steps :
22+ - name : Create Release Page
23+ shell : bash
24+ env :
25+ GH_TOKEN : ${{ github.token }}
26+ run : gh release create ${{ github.ref_name }} --generate-notes
Original file line number Diff line number Diff line change @@ -18,5 +18,6 @@ gem 'json'
1818gem 'octokit'
1919gem 'rubocop' , "~> 1.22"
2020gem 'rubocop-rake'
21+ gem 'github_changelog_generator'
2122
2223eval_gemfile ( "#{ __FILE__ } .local" ) if File . exist? ( "#{ __FILE__ } .local" )
Original file line number Diff line number Diff line change 1- ## Unreleased
2-
3- * Use yum/dnf remove instead of erase since erase was deprecated and removed in dnf5.
4-
51## 8.18.1
62
73* Fix for the PR removing the ContentsDescription class.
Original file line number Diff line number Diff line change 11require 'open3'
22
3+ OPENVOX_AGENT_VERSION = "8.19.0"
4+
35RED = "\033 [31m" . freeze
46GREEN = "\033 [32m" . freeze
57RESET = "\033 [0m" . freeze
@@ -104,3 +106,23 @@ task(:commits) do
104106 end
105107 puts "#{ GREEN } All commit messages match the guidelines!#{ RESET } "
106108end
109+
110+ begin
111+ require "github_changelog_generator/task"
112+
113+ GitHubChangelogGenerator ::RakeTask . new :changelog do |config |
114+ config . header = <<~HEADER . chomp
115+ # Changelog
116+
117+ All notable changes to this project will be documented in this file.
118+ HEADER
119+ config . user = "openvoxproject"
120+ config . project = "openvox-agent"
121+ config . exclude_labels = %w[ dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog ]
122+ config . future_release = OPENVOX_AGENT_VERSION
123+ end
124+ rescue LoadError
125+ task :changelog do
126+ abort ( "Run `bundle install --with packaging` to install the `github_changelog_generator` gem." )
127+ end
128+ end
You can’t perform that action at this time.
0 commit comments