-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
run_dir=$(pwd) | ||
cd $(mktemp -d) | ||
|
||
echo "Downloading build artefacts to temporary directory:" | ||
pwd | ||
|
||
curl https://api.github.com/repos/hyperdexapp/hyperdex/releases/latest | jq '.assets[].browser_download_url' | xargs wget | ||
|
||
echo "Calculating checksums and signing the result..." | ||
|
||
export GPG_TTY=$(tty) | ||
shasum --algorithmn 256 * | gpg --clearsign > "$run_dir/SHASUMS256.txt.asc" | ||
|
||
echo "Created SHASUM256.txt.asc" |