1 Commits
Author SHA1 Message Date
faumaray 0cf66f18dc trying to fix release
VoidLoader/VoidLoaderCore/pipeline/head This commit looks good
Signed-off-by: Faumaray <faumaray@gmail.com>
2025-10-19 04:23:43 +03:00
Vendored
+10 -1
View File
@@ -60,19 +60,28 @@ pipeline {
REPO="VoidLoader/VoidLoaderCore"
TAG="build-${BUILD_NUMBER}"
# Create release if it does not exist
curl -X POST -H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d "{\\"tag_name\\": \\"$TAG\\", \\"name\\": \\"$TAG\\"}" \
$GITEA_URL/api/v1/repos/$REPO/releases || true
# Get release ID
RELEASE_ID=$(curl -s -H "Authorization: token $GITEA_TOKEN" \
"$GITEA_URL/api/v1/repos/$REPO/releases/tags/$TAG" | jq -r '.id')
echo "Release ID = $RELEASE_ID"
# Upload asset
curl -X POST -H "Authorization: token $GITEA_TOKEN" \
-F "attachment=@VoidLoader.zip" \
"$GITEA_URL/api/v1/repos/$REPO/releases/$TAG/assets"
"$GITEA_URL/api/v1/repos/$REPO/releases/$RELEASE_ID/assets"
'''
}
}
}
}
}