Skip to content

Commit 273ef77

Browse files
authored
[ci] exclude .git and .gitignore during docs rsync (#668)
1 parent 5e4866e commit 273ef77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/astro.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
mkdir -p /tmp/astro-docs
5757
5858
# Copy built docs to temp directory
59-
rsync -av --delete --exclude 'node_modules' docs/dist/ /tmp/astro-docs/
59+
rsync -av --delete --exclude 'node_modules' --exclude '.git' --exclude '.gitignore' /tmp/astro-docs/ .
6060
6161
echo "node_modules" > .gitignore
6262
echo "docs/node_modules/" >> .gitignore
@@ -71,7 +71,7 @@ jobs:
7171
fi
7272
7373
# Copy docs from temp directory to current branch
74-
rsync -av --delete --exclude 'node_modules' /tmp/astro-docs/ .
74+
rsync -av --delete --exclude 'node_modules' --exclude '.git' --exclude '.gitignore' /tmp/astro-docs/ .
7575
7676
rm -rf node_modules
7777
rm -rf docs/node_modules

0 commit comments

Comments
 (0)