From 98a0bce4fd07fe4ac22954b68dc011a6babf2599 Mon Sep 17 00:00:00 2001 From: Nicholas Omer Chiasson Date: Sun, 21 Jul 2019 01:38:57 -0400 Subject: [PATCH] Okay, hopefully making a latest release with this one, but we'll see --- .travis.yml | 39 ++++++++++++++++++++++++++------------- Cargo.toml | 2 +- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 487ebd8..cfc6375 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,16 +23,29 @@ matrix: cache: cargo -before_script: sed -i "s/version = \"0.0.0\"/version = \"$(VERSION=${TRAVIS_TAG} ./version.sh tags)\"/" Cargo.toml - -script: - - cargo build --verbose --release - -deploy: - provider: releases - api_key: - secure: ${GITHUB_PERSONAL_ACCESS_TOKEN} - file: "target/release/mir" - skip_cleanup: true - on: - tags: true +jobs: + include: + - stage: build + before_script: sed -i "s/version = \"0.0.0\"/version = \"$(VERSION=${TRAVIS_TAG} ./version.sh tags)\"/" Cargo.toml + script: + - cargo build --verbose --release + - stage: deploy + deploy: + provider: releases + api_key: + secure: ${GITHUB_PERSONAL_ACCESS_TOKEN} + file: "target/release/mir" + skip_cleanup: true + on: + tags: true + - stage: deploy + env: + - TRAVIS_TAG=latest + deploy: + provider: releases + api_key: + secure: ${GITHUB_PERSONAL_ACCESS_TOKEN} + file: "target/release/mir" + skip_cleanup: true + on: + tags: true diff --git a/Cargo.toml b/Cargo.toml index 21db3d0..417171f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ categories = ["command-line-utilities"] [badges] gitlab = { repository = "leschiassons/tools/mir" } -# travis-ci = { repository = "...", branch = "master" } +travis-ci = { repository = "leschiassons/mir", branch = "latest" } maintenance = { status = "passively-maintained" } [dependencies]