Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Deploy auth from the same repository

Manav Rathie858ae2dc60d
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
new file mode 100644
index 0000000000..f39c5b204d
--- /dev/null
+++ b/scripts/deploy.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# This script is run by the Cloudflare Pages integration when deploying the apps
+# in this repository. The app to build is decided based on the the value of the
+# CF_PAGES_BRANCH environment variable.
+#
+# Ref: https://developers.cloudflare.com/pages/how-to/build-commands-branches/
+
+set -o errexit
+
+if test "$CF_PAGES_BRANCH" == "auth-release"
+then
+ yarn export:auth
+else
+ yarn export:photos
+fi