Skip to content

Commit c9652b6

Browse files
authored
Merge pull request #82 from OpenVoxProject/gcg
Generate human-readable ChangeLog
2 parents 712ff61 + 5890be8 commit c9652b6

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,13 @@ jobs:
2929
chmod 0600 ~/.gem/credentials
3030
- name: Publish gem to GitHub packages
3131
run: gem push --key github --host https://rubygems.pkg.github.com/openvoxproject *.gem
32+
- name: Create Release Page
33+
shell: bash
34+
env:
35+
GH_TOKEN: ${{ github.token }}
36+
run: gh release create ${{ github.ref_name }} --generate-notes
37+
- name: Attach gem to GitHub Release
38+
shell: bash
39+
env:
40+
GH_TOKEN: ${{ github.token }}
41+
run: gh release upload ${{ github.ref_name }} pkg/*.gem

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ group(:development, optional: true) do
6969
end
7070

7171
group(:packaging) do
72+
gem 'github_changelog_generator'
7273
gem 'packaging', *location_for(ENV['PACKAGING_LOCATION'] || '~> 0.99')
7374
end
7475

Rakefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,25 @@ if Rake.application.top_level_tasks.grep(/^gettext:/).any?
146146
abort("Run `bundle install --with documentation` to install the `gettext-setup` gem.")
147147
end
148148
end
149+
150+
begin
151+
require "github_changelog_generator/task"
152+
require_relative "lib/puppet/version"
153+
154+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
155+
config.header = <<~HEADER.chomp
156+
# Changelog
157+
158+
All notable changes to this project will be documented in this file.
159+
HEADER
160+
config.user = "openvoxproject"
161+
config.project = "puppet"
162+
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix modulesync skip-changelog]
163+
config.since_tag = "8.18.1"
164+
config.future_release = Puppet::PUPPETVERSION
165+
end
166+
rescue LoadError
167+
task :changelog do
168+
abort("Run `bundle install --with packaging` to install the `github_changelog_generator` gem.")
169+
end
170+
end

puppet.gemspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
require_relative 'lib/puppet/version'
2+
13
Gem::Specification.new do |spec|
24
spec.name = "openvox"
3-
spec.version = "8.18.1"
5+
spec.version = Puppet::PUPPETVERSION
46
spec.licenses = ['Apache-2.0']
57

68
spec.required_rubygems_version = Gem::Requirement.new("> 1.3.1")

0 commit comments

Comments
 (0)