Compare commits

...

1 Commits

Author SHA1 Message Date
ec65df2976 ci: add verbose output for binary upload debugging
All checks were successful
CI/CD / Test (push) Successful in 1m14s
CI/CD / Lint (push) Successful in 1m22s
CI/CD / Build & Release (push) Successful in 1m51s
CI/CD / Mirror to GitHub (push) Has been skipped
2026-01-07 12:55:08 +01:00

View File

@@ -140,13 +140,17 @@ jobs:
echo "Created release ID: $RELEASE_ID" echo "Created release ID: $RELEASE_ID"
# Upload each binary # Upload each binary
echo "Files to upload:"
ls -la release/
for file in release/dbbackup-*; do for file in release/dbbackup-*; do
FILENAME=$(basename "$file") FILENAME=$(basename "$file")
echo "Uploading $FILENAME..." echo "Uploading $FILENAME..."
curl -s -X POST \ UPLOAD_RESPONSE=$(curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-F "attachment=@${file}" \ -F "attachment=@${file}" \
"https://git.uuxo.net/api/v1/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${FILENAME}" "https://git.uuxo.net/api/v1/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${FILENAME}")
echo "Upload response: $UPLOAD_RESPONSE"
done done
echo "Gitea release complete!" echo "Gitea release complete!"