summaryrefslogtreecommitdiff
path: root/scripts/publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/publish.sh')
-rwxr-xr-xscripts/publish.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/publish.sh b/scripts/publish.sh
new file mode 100755
index 0000000..5e1d2f1
--- /dev/null
+++ b/scripts/publish.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+
+repo=$1
+branch=$2
+owner=$3
+giturl=$4
+source=$5
+build=$6
+
+# Set the path of the hosted site
+site="/usr/share/nginx/www/$repo"
+
+# Remove old site files, move new ones in place
+rm -rf $site
+mv $build $site