Skip to content

Commit

Permalink
Fixing md5 calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
theypsilon authored Mar 8, 2024
1 parent 465f710 commit 7159c09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ if int(changes) >= 1:

time.sleep(15)

subprocess.run(['md5sum', 'dont_download.zip', '>', 'dont_download.zip.md5'], shell=True)
result = subprocess.run(['md5sum', 'dont_download.zip'], capture_output=True, check=True, text=True)
with open('dont_download.zip.md5', 'w') as f:
f.write(result.stdout)

subprocess.run(['gh', 'release', 'upload', 'latest', 'dont_download.zip', '--clobber'], check=True)
subprocess.run(['gh', 'release', 'upload', 'latest', 'dont_download.zip.md5', '--clobber'], check=True)
Expand Down

0 comments on commit 7159c09

Please sign in to comment.