From 3bd77e91e3246ec7b6be65007e2e307d3504d29f Mon Sep 17 00:00:00 2001 From: Shimo-1999 <63487964+Shimo-1999@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:59:34 +0900 Subject: [PATCH] ci: keep .git when syncing to gh-pages (add rsync --exclude .git) --- .github/workflows/gh-pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4b93b39..d7ee8fb 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -83,7 +83,7 @@ jobs: - name: Commit prod to gh-pages root run: | set -euo pipefail - rsync -a --delete "${DIST_DIR}/" "${GH_PAGES_DIR}/" + rsync -a --delete --exclude ".git" "${DIST_DIR}/" "${GH_PAGES_DIR}/" cd "${GH_PAGES_DIR}" git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com"