Ensure there are no unpushed changes in the local repo before running upload_to_server

This commit is contained in:
Kovid Goyal 2015-11-13 17:52:59 +05:30
parent 5d84cd7913
commit cb22155364

View File

@ -254,6 +254,7 @@ class UploadToServer(Command): # {{{
def run(self, opts): def run(self, opts):
src_file = glob.glob('dist/calibre-*.tar.xz')[0] src_file = glob.glob('dist/calibre-*.tar.xz')[0]
upload_signatures() upload_signatures()
check_call(['git', 'push'])
check_call(['/home/kovid/work/env/private/gpg-as-kovid', '--armor', '--yes', '--detach-sign', src_file]) check_call(['/home/kovid/work/env/private/gpg-as-kovid', '--armor', '--yes', '--detach-sign', src_file])
check_call(['scp', src_file + '.asc', 'code:/srv/code/signatures/']) check_call(['scp', src_file + '.asc', 'code:/srv/code/signatures/'])
check_call('ssh code /usr/local/bin/update-calibre-code.py'.split()) check_call('ssh code /usr/local/bin/update-calibre-code.py'.split())