Skip to content

Commit

Permalink
dynamic prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Lammer committed May 27, 2018
1 parent be46fff commit 11e7c48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ deploy:
- script.js
skip_cleanup: true
name: "$VERSION"
prerelease: "true"
draft: true
prerelease: $([ $(echo $VERSION | sed -r -e 's/v([0-9]+).*/\1/') == $(git describe --tags --abbrev=0 | sed -r -e 's/v([0-9]+).*/\1/') ] && printf 'true' || printf 'false') # false if major version changed, true otherwise
draft: false
on:
repo: SimonLammer/anki-persistence
branch: travis
branch: master
condition: $(git describe --tags --abbrev=0) != $VERSION
cache:
directories:
Expand Down

0 comments on commit 11e7c48

Please sign in to comment.