1
1
mirror of https://github.com/Yvee1/hascard.git synced 2024-11-22 12:51:58 +03:00

Fix attach-binary.sh (hopefully)

This commit is contained in:
Steven van den Broek 2021-07-16 20:48:49 +02:00
parent 2299a7adbd
commit 89397f93aa

View File

@ -3,7 +3,7 @@ set -o errexit -o verbose
if test ! "$GITHUB_REF"
then
echo 'This is not a release build.'
elif test ! "$GITHUB_TOKEN"
elif test ! "${{ secrets.GITHUB_TOKEN }}"
then
echo 'The GITHUB_TOKEN environment variable is not set!'
exit 1
@ -18,5 +18,5 @@ else
tar -czf "$BUNDLE_NAME" "$REPO"
echo "SHA256:"
shasum -a 256 "$BUNDLE_NAME"
ghr -t "$GITHUB_TOKEN" -u "$OWNER" -r "$REPO" --replace "$(git describe --tags)" "$BUNDLE_NAME"
ghr -t "${{ secrets.GITHUB_TOKEN }}" -u "$OWNER" -r "$REPO" --replace "$(git describe --tags)" "$BUNDLE_NAME"
fi