Fixing release job

This commit is contained in:
Rukira 2026-08-24 20:05:00 +01:00
parent 12e6a6f94b
commit 033febece6

View file

@ -198,7 +198,8 @@ jobs:
filename=$(basename "$file") filename=$(basename "$file")
echo "Uploading asset ${filename} to Forgejo release ${RELEASE_ID}..." echo "Uploading asset ${filename} to Forgejo release ${RELEASE_ID}..."
curl -sS --fail-with-body -X POST \ curl -sS --fail-with-body -X POST \
"https://git.asarius.site/api/v1/repos/rukira/wow-backup/releases/${RELEASE_ID}/assets?name=${filename}" \ "https://git.asarius.site/api/v1/repos/rukira/wow-backup/releases/${RELEASE_ID}/assets" \
--url-query "name=${filename}" \
-H "Authorization: token ${FORGEJO_PAT}" \ -H "Authorization: token ${FORGEJO_PAT}" \
-H "Accept: application/json" \ -H "Accept: application/json" \
-F "attachment=@${file}" -F "attachment=@${file}"