ci: use 7z on windows

yes, windows... must be different :)
This commit is contained in:
Jozef Steinhübl 2024-07-19 17:18:12 +02:00
parent 9be3d1dc7a
commit eb3ed250fc
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -73,7 +73,12 @@ jobs:
tar -czvf "${ARCHIVE_PATH}" -C "tmp/${ARCHIVE_NAME}" .
else
ARCHIVE_PATH="tmp/${ARCHIVE_NAME}.zip"
zip -r "${ARCHIVE_PATH}" "tmp/${ARCHIVE_NAME}"
if [[ "${{ matrix.runner }}" == "windows-latest" ]]; then
7z a "${ARCHIVE_PATH}" "tmp/${ARCHIVE_NAME}"
else
zip -r "${ARCHIVE_PATH}" "tmp/${ARCHIVE_NAME}"
fi
fi
echo "archive_name=${ARCHIVE_NAME}" >> $GITHUB_OUTPUT