Skip to content

Commit

Permalink
Little switcheroni
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaschiasson committed Jul 21, 2019
1 parent ea39ac0 commit 82da354
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,36 @@ stages:
- build
- deploy

env:
- BINARY_NAME=mir-${TRAVIS_TAG}-${TRAVIS_OS_NAME}

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
script:
- cp target/release/mir ${BINARY_NAME}
deploy:
provider: releases
api_key:
secure: ${GITHUB_PERSONAL_ACCESS_TOKEN}
file: "target/release/mir"
file: "${BINARY_NAME}"
skip_cleanup: true
on:
tags: true
- stage: deploy
env:
- TRAVIS_TAG=latest
script:
- cp target/release/mir ${BINARY_NAME}
deploy:
provider: releases
api_key:
secure: ${GITHUB_PERSONAL_ACCESS_TOKEN}
file: "target/release/mir"
file: "${BINARY_NAME}"
skip_cleanup: true
on:
tags: true

0 comments on commit 82da354

Please sign in to comment.