diff --git a/.drone.yml b/.drone.yml index 3e92d50..480ea53 100644 --- a/.drone.yml +++ b/.drone.yml @@ -64,10 +64,17 @@ steps: commands: - apk add --update --no-cache curl jq - env |grep DRONE + # Upload packages - | curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \ --upload-file "/_cache/bin/$PACKAGE_BASENAME" \ "$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME" + # - | + # for deb in /_cache/bin/*.deb; do + # curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \ + # --upload-file "$deb" \ + # "$PACKAGE_UPLOAD_URL/$DRONE_TAG/$(basename $deb)" + # done - | set -x curl -X POST \ @@ -93,6 +100,16 @@ steps: -H "Content-Type: multipart/form-data" \ -F "attachment=@/_cache/bin/$PACKAGE_BASENAME" \ "$RELEASES_URL/$TAG_ID/assets?name=$PACKAGE_BASENAME" + # - | + # set -x + # for deb in /_cache/bin/*.deb; do + # curl -X POST \ + # -H "Authorization: token $RELEASE_UPLOAD_TOKEN" \ + # -H "accept: application/json" \ + # -H "Content-Type: multipart/form-data" \ + # -F "attachment=@$deb" \ + # "$RELEASES_URL/$TAG_ID/assets?name=$(basename $deb)" + # done # FIXME: handle multi-arch