Files
flameshot/travis/linux_after_success.sh
Alfredo Ramos 046170d970 Upload packages only after a successful build (#294)
This reduces build time but this change was primarily made to place the commands to its right place.

This also did a small fix in the travis/linux_script.sh file to use paths defined in variables instead of using the hard-coded ones.
2018-07-31 10:55:39 +02:00

28 lines
680 B
Bash
Executable File

#!/bin/bash --
set -e
DIST_PATH=dist
if [[ "${DIST}" == "trusty" ]]; then
curl \
--upload-file \
"${DIST_PATH}"/flameshot_${ARCH}_${VERSION}.${EXTEN} \
"https://transfer.sh/flameshot_${ARCH}_${VERSION}.${EXTEN}"
else
case "${OS}" in
"ubuntu"|"debian")
curl \
--upload-file \
"${DIST_PATH}"/flameshot_${VERSION}-${DIST}-${ARCH}_${ARCH}.${EXTEN} \
"https://transfer.sh/flameshot_${VERSION}-${DIST}-${ARCH}_${ARCH}.${EXTEN}"
;;
"fedora")
curl \
--upload-file \
"${DIST_PATH}"/flameshot_${VERSION}-fedora${DIST}-${ARCH}_${ARCH}.${EXTEN} \
"https://transfer.sh/flameshot_${VERSION}-fedora${DIST}-${ARCH}_${ARCH}.${EXTEN}"
;;
esac
fi