Skip to content

Commit a83f617

Browse files
committed
Skip upload if secure variables aren't available
1 parent 27d0d0e commit a83f617

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

uploadbinaries.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then
4+
35
pushd nuget.package
46

57
zip -r binaries.zip libgit2
@@ -9,3 +11,5 @@ BINTRAY_API_USER="nulltoken"
911
curl -T binaries.zip -u$BINTRAY_API_USER:$BINTRAY_API_KEY https://api.bintray.com/content/libgit2/compiled-binaries/$TRAVIS_OS_NAME/$TRAVIS_BUILD_NUMBER/binaries-$TRAVIS_OS_NAME-$TRAVIS_BUILD_NUMBER.zip?publish=1
1012

1113
popd
14+
15+
fi

0 commit comments

Comments
 (0)