summaryrefslogtreecommitdiffstats
path: root/build-release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-release.sh')
-rwxr-xr-xbuild-release.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/build-release.sh b/build-release.sh
new file mode 100755
index 0000000..74a79d1
--- /dev/null
+++ b/build-release.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+#
+
+[[ -d ./build ]] || mkdir build
+
+pushd build
+
+[[ -d ./giglogadmin ]] && rm -rf giglogadmin
+
+git clone .. giglogadmin
+pushd giglogadmin
+composer install --no-dev
+popd
+
+archive="giglogadmin.$(git describe).zip"
+[[ -f $archive ]] && rm $archive
+zip -9r $archive giglogadmin/{assets,includes,LICENSES,vendor,giglogadmin.php}
+popd