mirror of
https://github.com/Yvee1/hascard.git
synced 2024-11-22 04:33:06 +03:00
Fix attach-binary.sh (hopefully)
This commit is contained in:
parent
2299a7adbd
commit
89397f93aa
4
.github/scripts/attach-binary.sh
vendored
4
.github/scripts/attach-binary.sh
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user