Skip to content

Commit ed873c6

Browse files
authored
Merge pull request #50 from OpenVoxProject/gcg
2 parents 639c57e + 97068cd commit ed873c6

File tree

4 files changed

+49
-4
lines changed

4 files changed

+49
-4
lines changed

.github/workflows/release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ gem 'json'
1818
gem 'octokit'
1919
gem 'rubocop', "~> 1.22"
2020
gem 'rubocop-rake'
21+
gem 'github_changelog_generator'
2122

2223
eval_gemfile("#{__FILE__}.local") if File.exist?("#{__FILE__}.local")

CHANGELOG.md renamed to HISTORY.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
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.

Rakefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
require 'open3'
22

3+
OPENVOX_AGENT_VERSION = "8.19.0"
4+
35
RED = "\033[31m".freeze
46
GREEN = "\033[32m".freeze
57
RESET = "\033[0m".freeze
@@ -104,3 +106,23 @@ task(:commits) do
104106
end
105107
puts "#{GREEN}All commit messages match the guidelines!#{RESET}"
106108
end
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

0 commit comments

Comments
 (0)