We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e0246 commit 5e4866eCopy full SHA for 5e4866e
.github/workflows/astro.yml
@@ -6,6 +6,7 @@ on:
6
paths:
7
- 'docs/**'
8
- '.github/workflows/astro.yml'
9
+ workflow_dispatch:
10
11
jobs:
12
build-docs:
@@ -55,7 +56,7 @@ jobs:
55
56
mkdir -p /tmp/astro-docs
57
58
# Copy built docs to temp directory
- rsync -av --exclude 'node_modules' docs/dist/ /tmp/astro-docs/
59
+ rsync -av --delete --exclude 'node_modules' docs/dist/ /tmp/astro-docs/
60
61
echo "node_modules" > .gitignore
62
echo "docs/node_modules/" >> .gitignore
@@ -70,7 +71,7 @@ jobs:
70
71
fi
72
73
# Copy docs from temp directory to current branch
- rsync -av --exclude 'node_modules' /tmp/astro-docs/ .
74
+ rsync -av --delete --exclude 'node_modules' /tmp/astro-docs/ .
75
76
rm -rf node_modules
77
rm -rf docs/node_modules
0 commit comments