Updated short tag parsing

canary
WolverinDEV 2019-02-22 17:49:54 +01:00
parent 84b33085b9
commit cc10bdfd39
1 changed files with 3 additions and 2 deletions

View File

@ -22,9 +22,10 @@ jobs:
- "ls -lah /tmp/build/packages/" - "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;" - "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_SHORT=$(git rev-parse --short HEAD)
export GITHUB_RELEASE_TAG="This is a auto build release from travis"; export GITHUB_RELEASE_TAG="This is a auto build release from travis";
export GITHUB_RELEASE_REPOSITORY="$TRAVIS_REPO_SLUG"; export GITHUB_RELEASE_REPOSITORY="$TRAVIS_REPO_SLUG";
export GITHUB_RELEASE_ACCESS_TOKEN="$GIT_AUTHTOKEN"; export GITHUB_RELEASE_ACCESS_TOKEN="$GIT_AUTHTOKEN";
echo "Release commit: $TRAVIS_TAG"; export GITHUB_RELEASE_COMMIT="$TRAVIS_TAG"; echo "Release commit: $GIT_TAG_SHORT"; export GITHUB_RELEASE_COMMIT="$GIT_TAG_SHORT";
/tmp/git-release "Travis autobuild $TRAVIS_TAG" /tmp/build/packages/* /tmp/build/logs/*; /tmp/git-release "Travis autobuild $GIT_TAG_SHORT" /tmp/build/packages/* /tmp/build/logs/*;
if: branch = master if: branch = master