Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/scripts/deploy
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/sh
#!/bin/sh -e

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

cd "$REPO_DIRECTORY"
REPO=/opt/userguide
SITE=/home/public_html/userguides/userguide4

cd "$REPO"
git switch master
git pull

rm -rf "$SITE"
cp -R "$REPO/docs" "$SITE"