diff --git a/.travis.yml b/.travis.yml index 4ca1e08baf0c2afead2c8130bf55e680277a6fb1..e0c7d07a8b05c62dd672d1785812d86b807be92c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,11 @@ matrix: before_deploy: - if [ -n "$package" ]; then tar czvf ${package} -C build/texk/web2c luajittex luatex ; fi + - export LUATEX_VERSION=`grep luatex_version_string source/texk/web2c/luatexdir/luatex.c | cut -d '"' -f 2` + - export LUATEX_SVN_REVISION=`grep -Eo "[0-9]+" source/texk/web2c/luatexdir/luatex_svnversion.h` + - git config --local user.name "Travis CI" + - git config --local user.email "https://travis-ci.org/" + - git tag "${LUATEX_VERSION}-svn${LUATEX_SVN_REVISION}" deploy: provider: releases @@ -71,5 +76,7 @@ deploy: file: $package skip_cleanup: true on: - tags: true + branch: trunk + overwrite: true + tags: false condition: $package != ""