File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ group(:development, optional: true) do
6969end
7070
7171group ( :packaging ) do
72+ gem 'github_changelog_generator'
7273 gem 'packaging' , *location_for ( ENV [ 'PACKAGING_LOCATION' ] || '~> 0.99' )
7374end
7475
Original file line number Diff line number Diff 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
148148end
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
Original file line number Diff line number Diff line change 1+ require_relative 'lib/puppet/version'
2+
13Gem ::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" )
You can’t perform that action at this time.
0 commit comments