Fix URL now that we only have one tag per release

This commit is contained in:
David Dworken 2022-05-28 10:18:51 -07:00
parent 0723750b26
commit edd1059b3e
2 changed files with 2 additions and 17 deletions

View File

@ -1,15 +0,0 @@
version: 1
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos: darwin
goarch: amd64
binary: hishtory-{{ .Os }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'

View File

@ -6,8 +6,8 @@ import subprocess
def main():
version = os.environ['GITHUB_REF'].split('/')[-1].split("-")[0]
print("Downloading binaries (this may pause for a while)")
waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}-darwin-arm64/hishtory-darwin-arm64", "hishtory-darwin-arm64")
waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}-darwin-amd64/hishtory-darwin-amd64", "hishtory-darwin-amd64")
waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}/hishtory-darwin-arm64", "hishtory-darwin-arm64")
waitUntilPublished(f"https://github.com/ddworken/hishtory/releases/download/{version}/hishtory-darwin-amd64", "hishtory-darwin-amd64")
print("before sha1sum:")
os.system("sha1sum hishtory-* 2>&1")