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.
2 parents 05b3f4f + 61c4577 commit 5eb9584Copy full SHA for 5eb9584
admin/userguide/.github/scripts/deploy
@@ -2,7 +2,8 @@
2
3
# Deploys the User Guide to the production
4
# website. Triggered by updates to the GitHub
5
-# repo's master branch.
+# codeigniter4/userguide repo's master branch.
6
+# See https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml
7
8
REPO=/opt/userguide
9
SITE=/home/public_html/userguides/userguide4
@@ -11,5 +12,7 @@ cd "$REPO"
11
12
git switch master
13
git pull
14
-rm -rf "$SITE"
15
-cp -R "$REPO/docs" "$SITE"
+cp -R "$REPO/docs" "$SITE.new"
16
+mv "$SITE" "$SITE.old"
17
+mv "$SITE.new" "$SITE"
18
+rm -rf "$SITE.old"
0 commit comments