Add release script #5
2 changed files with 5 additions and 1 deletions
|
@ -39,6 +39,7 @@ build_script:
|
|||
- node_modules\.bin\build -p never
|
||||
# for debugging, see what was built
|
||||
- dir dist
|
||||
- pip install PyGithub uritemplate
|
||||
- python release_on_tag.py
|
||||
|
||||
test: off
|
||||
|
|
|
@ -57,7 +57,10 @@ def check_repo_has_tag(repo, target_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():
|
||||
|
|
Loading…
Reference in a new issue