ente/scripts/deploy.sh
Manav Rathi 7bd332bad2 POSIX test requires a single =
https://pubs.opengroup.org/onlinepubs/009695399/utilities/test.html

Fixes the following error when running on CF pages:

    ./scripts/deploy.sh: 14: test: multi-deploy-test: unexpected operator

Also xtrace the commands for the log
2024-02-03 16:35:33 +05:30

23 lines
636 B
Bash
Executable file

#!/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/
#
# The CF Pages configuration is set to use `out/` as the build output directory,
# so once we're done building we symlink `out/` to the app specific output.
set -o errexit
set -o xtrace
if test "$CF_PAGES_BRANCH" = "auth-release"
then
yarn export:auth
ln -sf apps/auth/out
else
yarn export:photos
ln -sf apps/photos/out
fi