浏览代码

better tagging cor ci

Johann Woelper 6 年之前
父节点
当前提交
a39bfc75f8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .travis.yml

+ 2 - 2
.travis.yml

@@ -17,8 +17,8 @@ os:
 before_deploy:
   - cd $TRAVIS_BUILD_DIR
   - mv target/release/oculante target/release/oculante.$TRAVIS_OS_NAME
-  - git tag "latest"-$TRAVIS_OS_NAME
-  - export TRAVIS_TAG="latest"-$TRAVIS_OS_NAME
+  - git tag $TRAVIS_OS_NAME-$(git log --format=%h -1)
+  - export tag $TRAVIS_OS_NAME-$(git log --format=%h -1)
 deploy:
   provider: releases
   skip_cleanup: true