Skip to content

Commit 0a998a1

Browse files
committed
Merge pull request #24 from libgit2/ntk/donot_publish_until_merged
Do not publish binaries from a Pull Request
2 parents fecd0c1 + fc50b0b commit 0a998a1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

uploadbinaries.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if [ $TRAVIS_SECURE_ENV_VARS == "true" ]; then
3+
if [ $TRAVIS_SECURE_ENV_VARS == "true" ] && [ $TRAVIS_PULL_REQUEST == "false" ]; then
44

55
pushd nuget.package
66

@@ -10,6 +10,8 @@ BINTRAY_API_USER="nulltoken"
1010

1111
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
1212

13+
printf "\n\n-> https://dl.bintray.com/libgit2/compiled-binaries/binaries-%s-%s.zip\n\n" "$TRAVIS_OS_NAME" "$TRAVIS_BUILD_NUMBER"
14+
1315
popd
1416

1517
fi

0 commit comments

Comments
 (0)