Skip to content

Commit 5e4866e

Browse files
authored
fix(cd): fix stale docs being maintained on server
* fix(cd): fix stale docs being maintained on server * fix(cd): add possibility to trigger astro-workflow manually
1 parent 39e0246 commit 5e4866e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/astro.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- 'docs/**'
88
- '.github/workflows/astro.yml'
9+
workflow_dispatch:
910

1011
jobs:
1112
build-docs:
@@ -55,7 +56,7 @@ jobs:
5556
mkdir -p /tmp/astro-docs
5657
5758
# Copy built docs to temp directory
58-
rsync -av --exclude 'node_modules' docs/dist/ /tmp/astro-docs/
59+
rsync -av --delete --exclude 'node_modules' docs/dist/ /tmp/astro-docs/
5960
6061
echo "node_modules" > .gitignore
6162
echo "docs/node_modules/" >> .gitignore
@@ -70,7 +71,7 @@ jobs:
7071
fi
7172
7273
# Copy docs from temp directory to current branch
73-
rsync -av --exclude 'node_modules' /tmp/astro-docs/ .
74+
rsync -av --delete --exclude 'node_modules' /tmp/astro-docs/ .
7475
7576
rm -rf node_modules
7677
rm -rf docs/node_modules

0 commit comments

Comments
 (0)