The-Powder-Toy/.github/upload-release-asset.sh
Tamás Bálint Misius aff12209d3
Use gh cli for managing releases
Rather than my bespoke forks of the unmaintained actions that used to do this.
2024-01-12 17:05:00 +01:00

13 lines
290 B
Bash
Executable File

set -euo pipefail
IFS=$'\t\n'
temp=.temp
mkdir $temp
cp $ASSET_PATH $temp/$ASSET_NAME
(
cd $temp
gh release upload $GITHUB_REF_NAME $ASSET_NAME
)
rm -r $temp
echo browser_download_url=https://github.com/$GITHUB_REPOSITORY/releases/download/$GITHUB_REF_NAME/$ASSET_NAME >> $GITHUB_OUTPUT