#!/bin/sh set -e if [[ "$CI_WORKFLOW" != "EmergeTools Upload" ]]; then exit 0 fi required_env_vars=( "CI_ARCHIVE_PATH" "CI_BRANCH" "CI_COMMIT" "EMERGE_API_KEY" ) brew install jq zip_path="$CI_ARCHIVE_PATH.zip" pushd $(dirname $CI_ARCHIVE_PATH) zip -r --symlinks "$(basename $zip_path)" "$(basename $CI_ARCHIVE_PATH)" popd repo_name='Dimillian/IceCubesApp' tag='release' json_fields=$(cat <