Skip to content

Commit 3265fab

Browse files
committed
Update .travis.yml to run cargo publish on version tag
1 parent a90b177 commit 3265fab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ matrix:
1010
- cargo test
1111
after_success:
1212
- |-
13-
[ $TRAVIS_BRANCH = master ] &&
14-
[ $TRAVIS_PULL_REQUEST = false ] &&
13+
[ "$TRAVIS_TAG" = v$(cargo run -- --version | awk '{print $2}') ] &&
1514
cargo publish --token ${CRATESIO_TOKEN}
1615
env:
1716
global:

0 commit comments

Comments
 (0)