Skip to content

Commit

Permalink
Fix .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
t13a committed May 23, 2020
1 parent f5a852c commit 1023ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ script:
- make ISO_VERSION=$(date +%Y.%m.%d) build test

before_deploy:
- export TRAVIS_TAG="$(git tag --contains=HEAD --sort=taggerdate | tail -n 1)"
- export TRAVIS_TAG="$(git tag --points-at=HEAD | sed '/-/!{s/$/_/}' | sort -V | sed 's/_$//' | tail -n 1)"

deploy:
provider: releases
Expand All @@ -17,5 +17,5 @@ deploy:
file: out/*
skip_cleanup: true
on:
tags: true
condition: -n "$(git tag --points-at=HEAD)"
overwrite: true

0 comments on commit 1023ce0

Please sign in to comment.