From 0a178c9892f7ba9cb3fd2af606eadde2e9188a46 Mon Sep 17 00:00:00 2001 From: robojerk Date: Sun, 10 Aug 2025 10:03:05 -0700 Subject: [PATCH] Fix artifact upload: use existing zip archive, remove duplicate zip creation --- .forgejo/workflows/build-artifacts.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build-artifacts.yml b/.forgejo/workflows/build-artifacts.yml index 4253944..db3f7fb 100644 --- a/.forgejo/workflows/build-artifacts.yml +++ b/.forgejo/workflows/build-artifacts.yml @@ -253,11 +253,15 @@ jobs: run: | cd /tmp/deb-bootupd - # Create zip archive of artifacts + # Use the zip archive we already created artifact_name="deb-bootupd-artifacts-$(git rev-parse --short HEAD).zip" - zip -r "$artifact_name" build-artifacts/ - echo "Created artifact archive: $artifact_name" + # Rename the existing zip if needed + if [ -f "deb-bootupd-artifacts.zip" ]; then + mv "deb-bootupd-artifacts.zip" "$artifact_name" + fi + + echo "Using artifact archive: $artifact_name" ls -la "$artifact_name" # Upload to Forgejo generic package registry