have to search for draft releases
This commit is contained in:
parent
c0b34fe119
commit
445033f34a
2 changed files with 5 additions and 1 deletions
|
@ -39,6 +39,7 @@ build_script:
|
||||||
- node_modules\.bin\build -p never
|
- node_modules\.bin\build -p never
|
||||||
# for debugging, see what was built
|
# for debugging, see what was built
|
||||||
- dir dist
|
- dir dist
|
||||||
|
- pip install PyGithub uritemplate
|
||||||
- python release_on_tag.py
|
- python release_on_tag.py
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
|
|
|
@ -57,7 +57,10 @@ def check_repo_has_tag(repo, target_tag):
|
||||||
|
|
||||||
|
|
||||||
def get_release(current_repo, current_tag):
|
def get_release(current_repo, current_tag):
|
||||||
return current_repo.get_release(current_tag)
|
for release in current_repo.get_releases():
|
||||||
|
if release.tag_name == current_tag:
|
||||||
|
return release
|
||||||
|
raise Exception('No release for {} was found'.format(current_tag))
|
||||||
|
|
||||||
|
|
||||||
def get_artifact():
|
def get_artifact():
|
||||||
|
|
Loading…
Add table
Reference in a new issue