Skip to content

Commit e1bc92a

Browse files
authored
Fix race-condition when uploading releases (#181)
I've realized that the cause for the sporadic "artifact already exists" error messages when releasing is that Travis runs releases on both the `latest` and the version-specific tag. This only runs releases when on the version-specific commit.
1 parent 307b4af commit e1bc92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ deploy:
2424
skip_cleanup: true
2525
on:
2626
tags: true
27-
condition: "$TRAVIS_OS_NAME = linux"
27+
condition: "$TRAVIS_OS_NAME = linux && $TRAVIS_TAG != latest"

0 commit comments

Comments
 (0)