zip-img: factor out for main() python calling

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-15 01:35:31 +01:00
parent f75bf6fe4f
commit ca3ec3ec2d
2 changed files with 21 additions and 12 deletions

11
release
View File

@@ -1,10 +1,15 @@
#!/usr/bin/env python3
import os
import subprocess
import common
subprocess.check_call(['./build-all'])
subprocess.check_call(['./zip-img'])
zip_img = imp.load_source('zip_img', os.path.join(common.root_dir, 'zip-img'))
subprocess.check_call([os.path.join(common.root_dir, 'build-all')])
zip_img.main()
tag = 'sha-{}'.format(common.sha)
subprocess.check_call(['git', 'tag' tag])
subprocess.check_call(['git', 'tag', tag])
subprocess.check_call(['git', 'push' '--tags'])
# TODO
# - https://stackoverflow.com/questions/41022470/curl-request-to-add-file-to-github-release