From fb1d577f3c0b0f6e99017c90762c4702421339ca Mon Sep 17 00:00:00 2001 From: Radu Suciu Date: Tue, 11 Aug 2020 12:15:31 -0700 Subject: [PATCH] Tar all files without parent directory. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a74cc26..98b2b46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: run: hugo -s src -d ../build - name: Zipping release run: | - tar -czvf rc2resource-website-${{ steps.tag.outputs.tag }}.tar.gz -C build . + find build/ -printf "%P\n" | tar -czvf rc2resource-website-${{ steps.tag.outputs.tag }}.tar.gz --no-recursion -C build/ -T - - name: Upload release file uses: actions/upload-artifact@v1 with: