-
Notifications
You must be signed in to change notification settings - Fork 19
/
artifacts.sh
executable file
·18 lines (14 loc) · 1.02 KB
/
artifacts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
DATE=`date +%Y-%m-%d`
TWITTER_NAME="@wasabiwallet"
URL="https://wasabiwallet.io/"
VERSION="v2.0.1.4"
REPO="https://github.com/zkSNACKs/WalletWasabi"
CHECKSUM_SOURCE="https://github.com/zkSNACKs/WalletWasabi/releases/tag/${VERSION}"
PROJECT="wasabi"
SHA256=`shasum -a 256 WalletWasabi/WalletWasabi.Gui/bin/Release/netcoreapp3.1/WalletWasabi.Gui | cut -f 1 -d ' '`
# Note GITHUB_ environment variables are populated by Github Actions
ARTIFACT_BASEURL="https://github.com/${GITHUB_REPOSITORY}/raw"
ARTIFACT_BRANCH=${GITHUB_REF_NAME}
ENTRY_TO_APPEND="<li><a href='${REPO}/releases/${VERSION}'>${DATE}</a> | <a href='${URL}' class='project-name'>${PROJECT}</a> | <a href='${REPO}/releases/tag/${VERSION}'>${VERSION}</a> | <a href='${CHECKSUM_SOURCE}'> factory ${SHA256} </a>| <a href='${ARTIFACT_BASEURL}/${ARTIFACT_BRANCH}/${PROJECT}/${PROJECT}-${VERSION}-video.webm'>video proof</a> | <a href='https://github.com/coinkite/bitcoinbinary.org/blob/main/${PROJECT}/artifacts.sh' class="bot">build bot</a></li>"
echo ${ENTRY_TO_APPEND}