File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,16 @@ def main():
104
104
help = 'Overwrite files if already exist' )
105
105
parser .add_argument ('--dist-dir' , default = './dist/' ,
106
106
help = 'The temporary directory to download artifacts' )
107
- parser .add_argument ('tag' , help = 'Git tag of the version to upload' )
107
+ parser .add_argument (
108
+ 'tag' ,
109
+ help = ('Git tag of the version to upload. If it has a leading slash, '
110
+ 'it means AppVeyor build number rather than Git tag.' )
111
+ )
108
112
args = parser .parse_args ()
109
- build = ci_tag_build (args .tag )
113
+ if args .tag .startswith ('/' ):
114
+ build = {'version' : args .tag .lstrip ('/' )}
115
+ else :
116
+ build = ci_tag_build (args .tag )
110
117
jobs = ci_jobs (build )
111
118
if not os .path .isdir (args .dist_dir ):
112
119
print (args .dist_dir , 'does not exist yet; creating a new directory...' )
You can’t perform that action at this time.
0 commit comments