Only update the LATEST file for stable releases (i.e. ignore -alpha, -beta and -rc) (#1521)
* Only update the LATEST file for stable releases (i.e. ignore -alpha,
-beta and -rc)

Tested with `travis-conditions`:

https://docs.travis-ci.com/user/conditions-testing

$ travis-conditions "tag =~ ^v\d+\.\d+\.\d+[^-]*\$" --data '{"tag": "v1.11.0-alpha.1"}'
false
$ travis-conditions "tag =~ ^v\d+\.\d+\.\d+[^-]*\$" --data '{"tag": "v1.11.0"}'
true
$ travis-conditions "tag =~ ^v\d+\.\d+\.\d+[^-]*\$" --data '{"tag": "v1.11.0+896429d"}'
true

Also see https://semver.org/#spec-item-9
1 parent 2cbab87 commit 1afaa96d7771cf090e9d6141c6fd58f6277c4556
@Sebastian Wilzbach Sebastian Wilzbach authored on 27 Jul 2018
Martin Nowak committed on 27 Jul 2018
Showing 1 changed file
View
.travis.yml