Skip to content

Commit

Permalink
feat: update release script for new vault versions (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffel authored May 25, 2021
1 parent 8978c89 commit ec7d2e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def main():
if click.confirm("Deploy a Proxy Vault", default="Y"):
use_proxy = True
elif Version(PACKAGE_VERSION) > latest_release:
target_release_index = num_releases + 1
if not click.confirm(f"Deploy {PACKAGE_VERSION} as new release"):
return

Expand All @@ -95,8 +96,12 @@ def main():
management = get_address("Vault Management", default="ychad.eth")
name = click.prompt(f"Set description", default=DEFAULT_VAULT_NAME(token))
symbol = click.prompt(f"Set symbol", default=DEFAULT_VAULT_SYMBOL(token))
target_release = Vault.at(registry.releases(target_release_index)).apiVersion()
release_delta = num_releases - target_release_index
target_release = (
Vault.at(registry.releases(target_release_index)).apiVersion()
if release_delta >= 0
else PACKAGE_VERSION
)

click.echo(
f"""
Expand Down

0 comments on commit ec7d2e3

Please sign in to comment.