2017-02-18 09:18:17 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-03-25 03:13:41 -07:00
|
|
|
echo "${SSH_KEY}" | base64 --decode >/tmp/sftp_rsa
|
|
|
|
chmod 0700 /tmp/sftp_rsa
|
2019-03-25 03:48:15 -07:00
|
|
|
SCP_TARGET="$FTP_USER@$FTP_HOST:~/$FTP_PATH"
|
2019-03-25 03:13:41 -07:00
|
|
|
|
2018-01-10 12:51:53 -08:00
|
|
|
#
|
|
|
|
# Upload CLI
|
|
|
|
#
|
2019-04-03 02:04:48 -07:00
|
|
|
scp -o StrictHostKeyChecking=no -i /tmp/sftp_rsa -B -r -P $FTP_PORT tools/cli/target/teavm-cli-$NEW_VERSION.jar $SCP_TARGET/cli/dev/
|
2018-01-10 12:51:53 -08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Update IDEA repository descriptor
|
|
|
|
#
|
2021-03-10 00:05:49 -08:00
|
|
|
|
2017-02-18 09:18:17 -08:00
|
|
|
|
2019-04-03 02:04:48 -07:00
|
|
|
scp -o StrictHostKeyChecking=no -i /tmp/sftp_rsa -B -r -P $FTP_PORT .idea-repository.xml $SCP_TARGET/idea/dev/teavmRepository.xml
|
2018-01-10 12:51:53 -08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Upload Eclipse plugin
|
|
|
|
#
|
2018-11-22 03:49:30 -08:00
|
|
|
#cd tools/eclipse/updatesite/target/repository
|
|
|
|
# find . -type f -exec curl \
|
|
|
|
# --ftp-create-dirs \
|
|
|
|
# -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
|
|
|
|
# -T {} \
|
|
|
|
# ftp://$TEAVM_FTP_HOST/httpdocs/eclipse/update-site/$BASE_VERSION-dev/{} \;
|
|
|
|
#cd ../../../../..
|