Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Added bash build script.

Mike Cao37eb157ab5b6
diff --git a/ignore-build-step.sh b/ignore-build-step.sh
new file mode 100644
index 000000000..da63c205a
--- /dev/null
+++ b/ignore-build-step.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
+
+if [[ "$VERCEL_GIT_COMMIT_REF" != "analytics" ]] ; then
+ # Proceed with the build
+ echo "✅ - Build can proceed"
+ exit 1;
+
+else
+ # Don't build
+ echo "🛑 - Build cancelled"
+ exit 0;
+fi
\ No newline at end of file