We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28c6b83 + dd331fd commit df21c0aCopy full SHA for df21c0a
1 file changed
.github/scripts/deploy
@@ -1,8 +1,15 @@
1
-#!/bin/sh
+#!/bin/sh -e
2
3
# Deploys the User Guide to the production
4
# website. Triggered by updates to the GitHub
5
# repo's master branch.
6
7
-cd "$REPO_DIRECTORY"
+REPO=/opt/userguide
8
+SITE=/home/public_html/userguides/userguide4
9
+
10
+cd "$REPO"
11
+git switch master
12
git pull
13
14
+rm -rf "$SITE"
15
+cp -R "$REPO/docs" "$SITE"
0 commit comments