From 5e6e6c394a53f4b6369206aca8b4e1825d159c41 Mon Sep 17 00:00:00 2001 From: Kieron Morris Date: Sun, 9 Mar 2025 21:18:49 +0000 Subject: [PATCH] Debugging & Testing - Mistakes made in the curl methods used & the curl upload-file flag - rectified. --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 72b23921..9e56b6d0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,16 +46,16 @@ steps: # Upload commit-specific ISO - | echo "Uploading ${ISO_NAME} to Gitea Packages..." - curl -X POST "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/${BUILD_VERSION}" \ + curl -X PUT "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/${BUILD_VERSION}/Asuro.iso" \ -H "Authorization: token $GITEA_TOKEN" \ - -F "file=@$ISO_NAME" + --upload-file $ISO_NAME # Update the "latest" alias (delete old latest, re-upload) - | echo "Updating latest ISO reference..." - curl -X DELETE "https://gitea.example.com/api/packages/Spexeah/generic/asuro-iso/latest" \ + curl -X DELETE "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso" \ -H "Authorization: token $GITEA_TOKEN" || echo "No previous latest version found." - curl -X POST "https://gitea.example.com/api/packages/Spexeah/generic/asuro-iso/latest" \ + curl -X POST "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso" \ -H "Authorization: token $GITEA_TOKEN" \ - -F "file=@$ISO_NAME" \ No newline at end of file + --upload-file $ISO_NAME \ No newline at end of file