From 8a989c3e39a6fd825d46b3a05fb9891be1227711 Mon Sep 17 00:00:00 2001 From: Glenn Date: Wed, 27 Dec 2023 11:33:49 +0100 Subject: [PATCH] ci: fix binary delivery --- .drone.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 733a2a5..7ad9f20 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,9 +44,12 @@ steps: - apk add --update --no-cache curl jq - env |grep DRONE - | - curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \ - --upload-file "/_cache/bin/$PACKAGE_BASENAME" \ - "$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME" + for package_path in /_cache/packages/* ; do \ + package_name="$(basename "$package_path")" ; \ + curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \ + --upload-file "$package_path" \ + "$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME" ; \ + done - | set -x curl -X POST \ @@ -67,7 +70,7 @@ steps: - | set -x for package_path in /_cache/packages/* ; do \ - package_name="$(basename "$package_path")" + package_name="$(basename "$package_path")" ; \ curl -X POST \ -H "Authorization: token $RELEASE_UPLOAD_TOKEN" \ -H "accept: application/json" \