The-Powder-Toy/.github/starcatcher-publish.sh

7 lines
292 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2022-09-10 17:06:55 -05:00
set -euo pipefail
IFS=$'\n\t'
LFTP_PASSWORD=$PUBLISH_PASSWORD lftp -c "open --user '$PUBLISH_USERNAME' --env-password -e 'set ftp:ssl-protect-data true; set ssl:verify-certificate false; cd "${PUBLISH_DIRECTORY:-.}"; put \"$PUBLISH_FILENAME\";' ftp://$PUBLISH_HOSTPORT"