Fix artifact upload: use existing zip archive, remove duplicate zip creation
This commit is contained in:
parent
c81e9b8223
commit
0a178c9892
1 changed files with 7 additions and 3 deletions
|
|
@ -253,11 +253,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/deb-bootupd
|
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"
|
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"
|
ls -la "$artifact_name"
|
||||||
|
|
||||||
# Upload to Forgejo generic package registry
|
# Upload to Forgejo generic package registry
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue