Automatically Upload Nightly Artifacts if a Release is Cut #844

Merged
sarah merged 5 commits from android_foreground_fix into trunk 2024-02-24 05:09:19 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit 098adc46e6 - Show all commits

View File

@ -4,6 +4,11 @@ VERSION=$(cat VERSION)
echo "Grabbing Release Data From:" "https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/tags/$VERSION"
RELEASEID=$(curl -s -X 'GET' "https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/tags/$VERSION" -H 'accept: application/json' | jq '.id')
echo $RELEASEID
if [ "$RELEASEID" = "null" ]; then
# $var is empty
exit 1
fi
URL="$PLUGIN_GOGS_URL/api/v1/repos/$DRONE_REPO/releases/$RELEASEID/assets?name=$1"
FILE="@$1"