ci: add directory files to tar

This commit is contained in:
Jozef Steinhübl 2024-07-19 16:54:50 +02:00
parent c15591ffe9
commit 10ab77963a
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -73,13 +73,13 @@ jobs:
if [[ "${{ matrix.archive }}" == "tar.gz" ]]; then
ARCHIVE_PATH="tmp/${ARCHIVE_NAME}.tar.gz"
tar -czvf "${ARCHIVE_PATH}" -C "tmp/${ARCHIVE_NAME}"
tar -czvf "${ARCHIVE_PATH}" -C "tmp/${ARCHIVE_NAME}" .
else
ARCHIVE_PATH="tmp/${ARCHIVE_NAME}.zip"
zip -r "${ARCHIVE_PATH}" -C "tmp/${ARCHIVE_NAME}"
zip -r "${ARCHIVE_PATH}" "tmp/${ARCHIVE_NAME}"
fi
echo "archive_name=${ARCHIVE_NAME}"
echo "archive_name=${ARCHIVE_NAME}" >> $GITHUB_OUTPUT
echo "archive_path=${ARCHIVE_PATH}" >> $GITHUB_OUTPUT
- name: upload artifact