diff --git a/.travis.yml b/.travis.yml index d10c5c04..ad28a168 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,10 +22,11 @@ jobs: - "ls -lah /tmp/build/packages/" - "wget https://github.com/buildkite/github-release/releases/download/v1.0/github-release-linux-amd64 -O /tmp/git-release -q; chmod +x /tmp/git-release;" - > + export GIT_TAG=$(git rev-parse HEAD) export GIT_TAG_SHORT=$(git rev-parse --short HEAD) export GITHUB_RELEASE_TAG="This is a auto build release from travis"; export GITHUB_RELEASE_REPOSITORY="$TRAVIS_REPO_SLUG"; export GITHUB_RELEASE_ACCESS_TOKEN="$GIT_AUTHTOKEN"; - echo "Release commit: $GIT_TAG_SHORT"; export GITHUB_RELEASE_COMMIT="master"; + echo "Release commit: $GIT_TAG ($GIT_TAG_SHORT)"; export GITHUB_RELEASE_COMMIT="$GIT_TAG"; /tmp/git-release "Travis autobuild $GIT_TAG_SHORT" /tmp/build/packages/* /tmp/build/logs/*; if: branch = master \ No newline at end of file