From 37bc623decb1c5f2da448765a7ae3684112d7c01 Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Mon, 8 Jun 2026 16:11:34 +0800 Subject: [PATCH] fix(ci): exclude .git/.github from archive instead of deleting Deleting .github breaks the Post Run cleanup for composite actions, causing the entire job to fail. Use tar --exclude instead so the working directory stays intact for GitHub Actions cleanup. --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94f78fbf..12f9fed0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,15 +108,14 @@ jobs: run: | rm -rf apps/web/src apps/web/public apps/web/index.html apps/web/tsconfig.json rm -rf apps/landing apps/docs apps/demo - rm -rf tests .github .husky scripts + rm -rf tests .husky scripts rm -rf .releaserc.json biome.json .editorconfig .gitattributes - rm -rf .git .gitignore rm -f CHANGELOG.md README.md CONTRIBUTING.md SECURITY.md ARCHIVE_NAME="snapotter-v${VERSION}-linux-${ARCH}.tar.gz" cd .. mv SnapOtter snapotter - tar czf "/tmp/${ARCHIVE_NAME}" snapotter/ + tar czf "/tmp/${ARCHIVE_NAME}" --exclude='.git' --exclude='.github' --exclude='.gitignore' snapotter/ mv snapotter SnapOtter cd SnapOtter