diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be1a39f..806070c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,3 +68,9 @@ jobs: run: | twine upload dist/* + - name: Update Link + run: | + URL=https://github.com/${ORG}/${NAME}/releases/download/v${VERSION}/${NAME_SHORT}.tapp + DATA="{\"destination\": \"${URL}\"}" + curl --request POST --url https://api.rebrandly.com/v1/links/${LINK_ID} --header 'accept: application/json' --header "apikey: ${REBRANDLY_API_KEY}" --header 'content-type: application/json' --data "$DATA" &> /dev/null +