mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
24 lines
451 B
Bash
24 lines
451 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
. .travis/cirp/check_precondition.sh
|
||
|
|
||
|
if [ ! -z "$TRAVIS_TEST_RESULT" ] && [ "$TRAVIS_TEST_RESULT" != "0" ]
|
||
|
then
|
||
|
echo "Build has failed, skipping publishing"
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
if [ "$#" != "1" ]
|
||
|
then
|
||
|
echo "Error: No arguments provided. Please specify a directory containing artifacts as the first argument."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
ARTIFACTS_DIR="$1"
|
||
|
|
||
|
. .travis/cirp/install.sh
|
||
|
|
||
|
ci-release-publisher store "$ARTIFACTS_DIR"
|