Skip to content

Commit

Permalink
ci: add directory files to tar
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jul 19, 2024
1 parent c15591f commit 10ab779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10ab779

Please sign in to comment.