diff --git a/Jenkinsfile b/Jenkinsfile index 5e454ae..c7fd623 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,9 +87,10 @@ pipeline { if [ -n "$ASSET_ID" ] && [ "$ASSET_ID" != "null" ]; then echo "🗑 Removing old asset (ID $ASSET_ID)" curl -s -X DELETE -H "Authorization: token $GITEA_TOKEN" \ - "$GITEA_URL/api/v1/repos/$REPO/releases/assets/$ASSET_ID" >/dev/null || true + "$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets/$ASSET_ID" >/dev/null || true fi + # Upload new artifact echo "⬆️ Uploading new VoidLoader.zip ..." curl -s -X POST -H "Authorization: token $GITEA_TOKEN" \