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