Rakefile in sinatra-3.1.0 vs Rakefile in sinatra-3.2.0

- old
+ new

@@ -189,11 +189,11 @@ gem push #{package(gem, '.gem')} SH end end - desc 'Commits the version to github repository' + desc 'Commits the version to git (no push)' task :commit_version do %w[ lib/sinatra sinatra-contrib/lib/sinatra/contrib rack-protection/lib/rack/protection @@ -201,13 +201,25 @@ path = File.join(path, 'version.rb') File.write(path, File.read(path).sub(/VERSION = '(.+?)'/, "VERSION = '#{source_version}'")) end sh <<-SH - git commit --allow-empty -a -m '#{source_version} release' && - git tag -s v#{source_version} -m '#{source_version} release' && - git push && (git push origin || true) && - git push --tags && (git push origin --tags || true) + git commit --allow-empty --all --message '#{source_version} release' + SH + end + + desc 'Tags the version in git (no push)' + task :tag_version do + sh <<-SH + git tag --sign v#{source_version} --message '#{source_version} release' + SH + end + + desc 'Watch the release workflow run' + task :watch do + sh <<-SH + runId=$(gh run list --workflow=release.yml --limit 1 --json databaseId --jq '.[].databaseId') + gh run watch --interval 1 --exit-status $runId SH end desc 'Release all gems as packages' task all: %i[test commit_version] + GEMS_AND_ROOT_DIRECTORIES.keys