From 7bd922b5a204696ce83a97ae0f31341c3eb9c99f Mon Sep 17 00:00:00 2001 From: Antonio Yang Date: Mon, 8 Jul 2019 23:28:19 +0800 Subject: [PATCH] fix travis auto release --- .travis.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index dd21315..3f87413 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 "yanganto@gmail.com" - - 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