Skip to content

Commit 98b3086

Browse files
author
Curt Howard
committed
Remove extraneous push in Release task
We're running out of minutes in our GitHub actions due to duplicate pushes during a release. This consolidates the two pushes into one. The plugin template is also updated to ensure new plugins don't suffer from the same issue in the future. No changelog WORKAREA-148
1 parent cc7d3d8 commit 98b3086

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Rakefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ task :release do
9595
Rake::Task["workarea:changelog"].execute
9696
system 'git add CHANGELOG.md'
9797
system 'git commit -m "Update CHANGELOG"'
98-
system 'git push origin HEAD'
9998

10099
#
101100
# Build gem files
@@ -121,9 +120,14 @@ task :release do
121120
end
122121
system "gem push workarea-#{Workarea::VERSION::STRING}.gem"
123122
system "gem push workarea-#{Workarea::VERSION::STRING}.gem --host #{host}"
123+
124+
#
125+
# Add tag & push to origin
126+
#
127+
#
124128
system 'Tagging git...'
125129
system "git tag -a v#{Workarea::VERSION::STRING} -m 'Tagging #{Workarea::VERSION::STRING}'"
126-
system "git push --tags"
130+
system "git push origin HEAD --follow-tags"
127131

128132
#
129133
# Clean up

plugin_template.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,9 @@ def source_paths
301301
Rake::Task['workarea:changelog'].execute
302302
system 'git add CHANGELOG.md'
303303
system 'git commit -m "Update CHANGELOG"'
304-
system 'git push origin HEAD'
305304
306305
system "git tag -a v\#{Workarea::#{camelized}::VERSION} -m 'Tagging \#{Workarea::#{camelized}::VERSION}'"
307-
system 'git push --tags'
306+
system 'git push origin HEAD --follow-tags'
308307
309308
system "gem build workarea-#{name}.gemspec"
310309
system "gem push workarea-#{name}-\#{Workarea::#{camelized}::VERSION}.gem"

0 commit comments

Comments
 (0)