mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-05 08:39:30 +00:00
8 lines
345 B
Bash
8 lines
345 B
Bash
#! /bin/bash
|
|
|
|
local_file="$(ls $TRAVIS_BUILD_DIR/target/final/Parabot-V*.jar | head -n 1 | xargs -n 1 basename)"
|
|
local_path="$(ls $TRAVIS_BUILD_DIR/target/final/Parabot-V*.jar | head -n 1)"
|
|
target_url="ftp://$FTP_HOST/$local_file"
|
|
|
|
echo "Uploading $local_file to $target_url"
|
|
curl -us $FTP_USERNAME:$FTP_PASSWORD -T "$local_path" "$target_url" |