Skip to content

Commit df21c0a

Browse files
authored
Merge pull request #30 from codeigniter4/deploy-script
Deploy Script
2 parents 28c6b83 + dd331fd commit df21c0a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/scripts/deploy

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
#!/bin/sh
1+
#!/bin/sh -e
22

33
# Deploys the User Guide to the production
44
# website. Triggered by updates to the GitHub
55
# repo's master branch.
66

7-
cd "$REPO_DIRECTORY"
7+
REPO=/opt/userguide
8+
SITE=/home/public_html/userguides/userguide4
9+
10+
cd "$REPO"
11+
git switch master
812
git pull
13+
14+
rm -rf "$SITE"
15+
cp -R "$REPO/docs" "$SITE"

0 commit comments

Comments
 (0)