Commit a405a4a6f7be8cb2fbca7c38cc8555eaeca57a91
1 parent
cb7466c4
Exists in
master
and in
29 other branches
release: ask before creating tags
Showing
1 changed file
with
9 additions
and
6 deletions
Show diff stats
lib/tasks/release.rake
| ... | ... | @@ -205,14 +205,17 @@ EOF |
| 205 | 205 | puts "==> Preparing debian packages..." |
| 206 | 206 | Rake::Task['noosfero:debian_packages'].invoke |
| 207 | 207 | |
| 208 | - sh "git tag #{$version.gsub('~','-')}" | |
| 209 | - if confirm('Push new version tag') | |
| 210 | - repository = ask('Repository name', 'origin') | |
| 211 | - puts "==> Uploading tags..." | |
| 212 | - sh "git push #{repository} #{$version.gsub('~','-')}" | |
| 208 | + if confirm("Create tag for version #{$version}") | |
| 209 | + sh "git tag #{$version.gsub('~','-')}" | |
| 210 | + | |
| 211 | + if confirm('Push new version tag') | |
| 212 | + repository = ask('Repository name', 'origin') | |
| 213 | + puts "==> Uploading tags..." | |
| 214 | + sh "git push #{repository} #{$version.gsub('~','-')}" | |
| 215 | + end | |
| 213 | 216 | end |
| 214 | 217 | |
| 215 | - if confirm('Do you want to upload the packages') | |
| 218 | + if confirm('Upload the packages') | |
| 216 | 219 | puts "==> Uploading debian packages..." |
| 217 | 220 | Rake::Task['noosfero:upload_packages'].invoke(target) |
| 218 | 221 | else | ... | ... |