From 3778a453e86839f2abedb324648938e0dbeea7f5 Mon Sep 17 00:00:00 2001 From: Tim Hadwen Date: Mon, 2 Feb 2026 22:22:53 +1000 Subject: [PATCH] Simplify release to single zip with all fabrication outputs Creates ${PROJECT_NAME}_${VERSION}.zip containing all gerbers, BOMs, images, placement files, 3D models, etc. Co-Authored-By: Claude Opus 4.5 --- kibot-ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/kibot-ci.yml b/kibot-ci.yml index 8c5b0f1..cb5d17a 100644 --- a/kibot-ci.yml +++ b/kibot-ci.yml @@ -392,15 +392,18 @@ upload_packages: artifacts: true script: - apt-get update && apt-get -y install zip - - zip -r Fabrication/All.zip Fabrication/ + - | + # Create single release zip with all fabrication outputs + RELEASE_ZIP="${PROJECT_NAME}_${VERSION}.zip" + zip -r "Fabrication/${RELEASE_ZIP}" Fabrication/ + echo "Created release package: ${RELEASE_ZIP}" - echo 'import urllib.request,sys,os;f=open(sys.argv[1],"rb");req=urllib.request.Request(sys.argv[2],data=f.read(),method="PUT");req.add_header("JOB-TOKEN",os.environ["CI_JOB_TOKEN"]);urllib.request.urlopen(req);print("Uploaded",sys.argv[1])' > /tmp/upload.py - | - for zipfile in $(find Fabrication/ -maxdepth 1 -name '*.zip'); do - basename=$(basename "$zipfile" .zip) - url="${PACKAGE_REGISTRY_URL}/${VERSION}/${basename}-${VERSION}.zip" - echo "Uploading: $zipfile to $url" - python3 /tmp/upload.py "$zipfile" "$url" - done + # Upload release package + RELEASE_ZIP="${PROJECT_NAME}_${VERSION}.zip" + url="${PACKAGE_REGISTRY_URL}/${VERSION}/${RELEASE_ZIP}" + echo "Uploading: Fabrication/${RELEASE_ZIP} to $url" + python3 /tmp/upload.py "Fabrication/${RELEASE_ZIP}" "$url" artifacts: when: always paths: