Skip to content

Commit

Permalink
fix travis auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Yang committed Jul 8, 2019
1 parent 1c5ab62 commit 7bd922b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,12 @@ rust:
- stable
services:
- docker
before_deploy:
script:
- cargo build --verbose --all --target x86_64-unknown-linux-musl --release
- git config --local user.name "yanganto"
- git config --local user.email "[email protected]"
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
- ./build-release s3rs ${TRAVIS_TAG}-linux
before_deploy: "./build-release s3rs ${TRAVIS_TAG}-${TRAVIS_OS_NAME}"
deploy:
provider: releases
api_key: $GH_TOKEN
file_glob: true
file: "s3rs-${TRAVIS_TAG}-linux.*"
file: "s3rs-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.*"
skip_cleanup: true
on:
rust: stable
Expand Down

0 comments on commit 7bd922b

Please sign in to comment.