From 0913daebc6d8c77f5044cc90dc872835e74ab9b5 Mon Sep 17 00:00:00 2001 From: Kieron Morris Date: Sun, 9 Mar 2025 22:01:55 +0000 Subject: [PATCH] Still experiencing YAML errors, for some reason. --- .drone.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index baae6808..fba20248 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,7 +41,17 @@ steps: - git rev-parse --short HEAD > commit_hash.txt - COMMIT_HASH=$(cat commit_hash.txt) && cp Asuro.iso "Asuro-${COMMIT_HASH}.iso" - COMMIT_HASH=$(cat commit_hash.txt) && echo "Uploading Asuro-${COMMIT_HASH}.iso to Gitea Packages..." - - COMMIT_HASH=$(cat commit_hash.txt) && curl -X PUT "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/${COMMIT_HASH}/Asuro.iso" -H "Authorization: token $GITEA_TOKEN" --upload-file "Asuro-${COMMIT_HASH}.iso" + - | + COMMIT_HASH=$(cat commit_hash.txt) && \ + curl -X PUT "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/${COMMIT_HASH}/Asuro.iso" \ + -H 'Authorization: token $GITEA_TOKEN' \ + --upload-file "Asuro-${COMMIT_HASH}.iso" - echo "Updating latest ISO reference..." - - 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." - - COMMIT_HASH=$(cat commit_hash.txt) && curl -X PUT https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso -H "Authorization: token $GITEA_TOKEN" --upload-file "Asuro-${COMMIT_HASH}.iso" \ No newline at end of file + - | + 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." + - | + COMMIT_HASH=$(cat commit_hash.txt) && \ + curl -X PUT https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso \ + -H "Authorization: token $GITEA_TOKEN" \ + --upload-file "Asuro-${COMMIT_HASH}.iso" \ No newline at end of file