This is an automated email from the ASF dual-hosted git repository.
LinkinStars pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer-website.git
The following commit(s) were added to refs/heads/main by this push:
new 5fe15b4c7 chore: exclude .git directory during deployment sync
5fe15b4c7 is described below
commit 5fe15b4c7030354efcf20ce6578bc8b0677d5d03
Author: LinkinStars <[email protected]>
AuthorDate: Fri Oct 9 11:44:06 2026 +0800
chore: exclude .git directory during deployment sync
---
.github/workflows/deploy.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 33dcb8ebf..01eb48ff9 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -62,7 +62,7 @@ jobs:
run: |
publish_dir="$(mktemp -d)"
git worktree add --detach "$publish_dir" origin/dist-pages
- rsync -a --delete build/ "$publish_dir/"
+ rsync -a --delete --exclude=.git build/ "$publish_dir/"
cd "$publish_dir"
git config user.name "github-actions[bot]"
git config user.email
"41898282+github-actions[bot]@users.noreply.github.com"