From 10ab77963aff0b6897194f07084ea7493b72a2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Fri, 19 Jul 2024 16:54:50 +0200 Subject: [PATCH] ci: add directory files to tar --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bb14dd..b98a1a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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