mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-11-01 01:31:54 +00:00
14 lines
490 B
Bash
Executable file
14 lines
490 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
|
mv target/TotalFreedomMod.jar target/TotalFreedomMod-${TRAVIS_COMMIT}.jar
|
|
export SSHPASS=${SFTP_PASSWORD}
|
|
sshpass -e sftp -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oLogLevel=ERROR -oBatchMode=no -b - ${SFTP_USER}@${SFTP_HOST}:${SFTP_PATH} << !
|
|
put target/TotalFreedomMod-${TRAVIS_COMMIT}.jar
|
|
bye
|
|
!
|
|
echo "Artifact upload status: "$?
|
|
else
|
|
echo "Skipping artifact upload for pull request build."
|
|
fi
|