another.im-ios/scripts/uploadNonAlpha.sh
2024-11-18 15:53:52 +01:00

18 lines
485 B
Bash
Executable file

#!/bin/sh
function sftp_upload {
echo "${buildNumber}" > build/app/latest.txt
sftp ${1} <<EOF
put build/app/Monal.zip /var/www/downloads.monal-im.org/monal-im/$UPLOAD_TYPE/macOS/Monal-${buildNumber}.zip
put build/app/latest.txt /var/www/downloads.monal-im.org/monal-im/$UPLOAD_TYPE/macOS/latest.txt
quit
EOF
}
cd Monal
sftp_upload downloads.monal-im.org@s1.eu.prod.push.monal-im.org &
pid=$!
sftp_upload downloads.monal-im.org@s2.eu.prod.push.monal-im.org
wait $pid