mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-07-29 17:01:57 +00:00
Let's start using TravisCI Again
It just makes sense...
This commit is contained in:
parent
400a90b385
commit
500d0e1044
1 changed files with 13 additions and 0 deletions
13
travis-upload.sh
Normal file
13
travis-upload.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue