From 70b2bbe750f5ecaedfb4b0b61e366ff524aeaf5a Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Thu, 9 Oct 2025 15:26:41 -0700 Subject: [PATCH] releasing workflow: get rid of `./` in tar archives Fixes #6497 The new version would skip any hidden files in the dir, but we don't have any. See also the discussion in the linked issue. I didn't modify the `7zip` invocation as it does not create a `./` entry in the archive. --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50b17cea4e..717a7b4e07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,8 @@ jobs: echo "ASSET=$staging.zip" >> $GITHUB_ENV else cp "$outdir/jj" "$staging/" - tar czf "$staging.tar.gz" -C "$staging" . + cd "$staging" + tar czf "../$staging.tar.gz" * echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV fi env: @@ -109,7 +110,9 @@ jobs: run: | uv run mkdocs build archive="jj-${RELEASE_TAG_NAME}-docs-html.tar.gz" - tar czf "$archive" -C "rendered-docs" . + cd rendered-docs + # Does not include `.` in the archive, and would include hidden files if we had any + ls -A | tar czf "../$archive" -T - echo "ASSET=$archive" >> $GITHUB_ENV env: MKDOCS_OFFLINE: true