Skip to content

Commit 0822864

Browse files
committed
Fix publishing
1 parent 9ff6d0e commit 0822864

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ matrix:
2626
- rust: stable
2727
env:
2828
- DEPLOY=1
29+
- PUBLISH=1
2930
- TARGET=x86_64-unknown-linux-gnu
3031

3132
- rust: nightly-2020-03-12
@@ -121,7 +122,7 @@ deploy:
121122
after_deploy:
122123
- CURRENT_TAG=`git describe --exact-match --abbrev=0 --tags || true`
123124
- >
124-
if [[ $CURRENT_TAG != "" ]] && [[ $TRAVIS_RUST_VERSION == "stable" ]]; then
125+
if [[ $CURRENT_TAG != "" ]] && [[ $TRAVIS_RUST_VERSION == "stable" ]] && [[ $PUBLISH == "1" ]]; then
125126
cargo login $CRATES_IO_TOKEN
126127
./scripts/publish.sh "${CURRENT_TAG}"
127128
fi

scripts/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ do
2525
exit 1
2626
fi
2727
echo "Waiting for ${PROJECT} to publish"
28-
sleep 15
28+
sleep 25
2929
done

0 commit comments

Comments
 (0)