diff --git a/bin/publish-latest-branch-build.sh b/bin/publish-latest-branch-build.sh deleted file mode 100755 index 062ffa5..0000000 --- a/bin/publish-latest-branch-build.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -e -# The "-e" means to die in case of any errors. -################################################################ -# This script just take a built APK and move it to a directory # -################################################################ -# -# Currently in use here: -# https://gitpull.it/harbormaster/step/view/6/ -# -# Source code: -# https://gitpull.it/source/libre-busto-ci-cd/ -################################################################ - -# -# Usage: the first argument is the Differential ID number -# or empty if working on master. -# - - -# Get this very specific directory of this script. -# Credits: https://stackoverflow.com/a/246128/3451846 -CWD=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) - -# Allow to set a custom ENV_FILE=/something/else. -# As default, assume the '.env' file from the root directory of this repository. -if [ -z "$ENV_FILE" ]; then - ENV_FILE="$CWD"/../.env - echo "[WARN] You have not specified an ENV_FILE variable. Assuming the default $ENV_FILE" -fi - -# Require the Env file, exporting all its variables. -if [ -f "$ENV_FILE" ]; then - echo "[INFO] including env file: $ENV_FILE" - set -o allexport - . "$ENV_FILE" - set +o allexport -else - echo "[WARN] skipping non-existing $ENV_FILE file for user $(whoami) with home $HOME" -fi -echo "I'm a bot. be be bop" -# We rewrote the script in PHP since it's more reliable asd. -# We pass all the arguments there. -php "$CWD"/publish-latest-branch-build.php "$@"