Skip to content

Commit

Permalink
deploy cargo-dinghy macos binary
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Feb 9, 2019
1 parent b4500f3 commit cf55e45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ then
echo "##"
fi

if [ "$DEPLOY" = "true" ]
if [ -n "$DEPLOY" ]
then
cargo build --release -p cargo-dinghy
mkdir -p cargo-dinghy-travis
cp target/release/cargo-dinghy cargo-dinghy-travis
tar vczf cargo-dinghy-travis.tgz cargo-dinghy-travis
mkdir -p cargo-dinghy-$DEPLOY
cp target/release/cargo-dinghy cargo-dinghy-$DEPLOY
tar vczf cargo-dinghy-$DEPLOY.tgz cargo-dinghy-$DEPLOY
fi
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ matrix:
include:
- os: osx
osx_image: xcode8.3
env: DEPLOY=macos
- os: linux
dist: trusty
- rust: stable
env: DEPLOY=true
env: DEPLOY=travis
- rust: beta
- rust: nightly
script: sh .travis.sh
Expand All @@ -19,9 +20,9 @@ deploy:
skip_cleanup: true
api_key:
secure: YJlTT/zACnSNi3jFVXF+pPx615hxUrRe5ZCLLd3bgek/daEI4FIYJQIbO8ZlL8ufx7/SVKg8gjGxNYqDUsd3dozjVlALibogi6XBZfoAWZBkCUQNyoqALzNnTP+PbKme5mRQbtNPp5X0g7KDYoJGUHsvD6FUD7rxYe6QMpbGUvaa89cwFguNvWsjZgGBYtf5HO42u+JE6hXhmO8WGyK0cQYZEdXWn9kUBgQD1ua4+rqn9h35IFveEG0QAq59HNDTfmg67okXJINqYlJ0DzGJM4yN8BH9nSsBD/vGn79Z7nLp6PXOBIvwBY2sRUt3WwVNLGAVCqlmIeRdioQbUvJm09uqgNt8O9vKZYcAxUYja1xfCO5lyUDQ8IYJ5EZU9lSpW3wvalLKswL6bvLQ1ckI2ASe8rYMxsbUZ5TE3fJWuHpuGkaoJnvIvefrR4orB/Gi5cSJ708TBtUwS/Law95hUHPbCKs6nsC1vsoLLj33xZqpoNCZH8BSWyDWsfSuDdiMrSW68LeYe/DxWFuSg/AWfqDXi5xY5CMFzRJ5TgxhZ7wGVvrUTAvripVyPQkewb3fThgLDGqAwboPq9wq7UqiJKT5l8/BOHdlKTEeX5AKlaMCERZtupM6LT/2v3YuaBZpiVnsDW8nWAz0DyEcFcWo/UFl44Njrah9f/t4tJXuF7k=
file: cargo-dinghy-travis.tgz
file_glob: true
file: cargo-dinghy-*.tgz
on:
tags: true
repo: snipsco/dinghy
condition: "$TRAVIS_TAG =~ ^v.*$"

condition: "$TRAVIS_TAG =~ ^.*$"
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ git commit . -m "release $CRATE/$VERSION"

if [ "$CRATE" = "cargo-dinghy" ]
then
git tag "v$VERSION"
git tag "$VERSION"
fi
git tag "$CRATE/$VERSION"
git push --tags
Expand Down

0 comments on commit cf55e45

Please sign in to comment.