mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user