Commit 75687727f50260b5fb22a581a3c67f13007178ae
1 parent
1262c193
Exists in
master
and in
29 other branches
release tasks: allow manual upload of .deb packages
I build the packages in a different system than the one where I keep my ssh keys. Nevertheless, it will still work for other who don't.
Showing
1 changed file
with
9 additions
and
7 deletions
Show diff stats
lib/tasks/release.rake
@@ -204,20 +204,22 @@ EOF | @@ -204,20 +204,22 @@ EOF | ||
204 | 204 | ||
205 | puts "==> Preparing debian packages..." | 205 | puts "==> Preparing debian packages..." |
206 | Rake::Task['noosfero:debian_packages'].invoke | 206 | Rake::Task['noosfero:debian_packages'].invoke |
207 | - if confirm('Do you want to upload the packages') | ||
208 | - puts "==> Uploading debian packages..." | ||
209 | - Rake::Task['noosfero:upload_packages'].invoke(target) | ||
210 | - end | ||
211 | 207 | ||
212 | sh "git tag #{$version.gsub('~','-')}" | 208 | sh "git tag #{$version.gsub('~','-')}" |
213 | - push_tags = confirm('Push new version tag') | ||
214 | - if push_tags | 209 | + if confirm('Push new version tag') |
215 | repository = ask('Repository name', 'origin') | 210 | repository = ask('Repository name', 'origin') |
216 | puts "==> Uploading tags..." | 211 | puts "==> Uploading tags..." |
217 | sh "git push #{repository} #{$version.gsub('~','-')}" | 212 | sh "git push #{repository} #{$version.gsub('~','-')}" |
218 | end | 213 | end |
219 | 214 | ||
220 | - sh "rm tmp/pending-release" if Dir["tmp/pending-release"].first.present? | 215 | + if confirm('Do you want to upload the packages') |
216 | + puts "==> Uploading debian packages..." | ||
217 | + Rake::Task['noosfero:upload_packages'].invoke(target) | ||
218 | + else | ||
219 | + puts "I: please upload the package manually!" | ||
220 | + end | ||
221 | + | ||
222 | + rm_f "rm tmp/pending-release" | ||
221 | end | 223 | end |
222 | 224 | ||
223 | desc 'Build Debian packages' | 225 | desc 'Build Debian packages' |