Skip to content

Commit

Permalink
artifacts on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaviavi committed Apr 16, 2018
1 parent 574b426 commit d22d651
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ before_install:
# library, executables, and test suites, and runs the test suites.
# `--no-terminal works` around some quirks in Travis's terminal implementation.
script: |
version=$(grep \"^version\" curl-runnings.cabal | sed 's/ //g' | cut -d ':' -f 2) &&
export version=$(grep "^version" curl-runnings.cabal | sed 's/ //g' | cut -d ':' -f 2) &&
echo "building binary version $version" &&
stack $ARGS --no-terminal --install-ghc --haddock test &&
stack $ARGS --no-terminal --install-ghc --haddock install &&
strip $HOME/.local/bin/curl-runnings &&
cd $HOME/.local/bin/ &&
tar -czvf curl-runnings-$version.tar.gz curl-runnings &&
ln -s curl-runnings-$version.tar.gz curl-runnings.tar.gz &&
tar -czvf curl-runnings-${version}.tar.gz curl-runnings &&
ln -s curl-runnings-${version}.tar.gz curl-runnings.tar.gz &&
mkdir -p $HOME/cr-release &&
cd $HOME/cr-release &&
ln -s $HOME/.local/bin/curl-runnings-$version.tar.gz curl-runnings-$version.tar.gz
ln -s $HOME/.local/bin/curl-runnings-${version}.tar.gz curl-runnings-${version}.tar.gz
cache:
directories:
- $HOME/.stack
Expand All @@ -47,13 +47,15 @@ addons:
s3_region: "us-west-2"
paths:
- $HOME/.local/bin/curl-runnings.tar.gz
branch: master
on:
tags: true

deploy:
skip_cleanup: true
provider: releases
api_key:
secure: dWUoi8jGZTsx6hLC6E6sIfj5VjP46FD2wBzMxNdqQ3LCVpBOs8AkHwCoKj5ZzWboHk+3NP4TiQT/ryPg/pKL+8Bp9YWnWO+sSLffJXWv9qM6g6Jx4OXsExR38XD3bL/6goNyiQzS53vjN2XkNsFHl82wBYoRjE9LvB+dGMHrNxFVMfIke3Wd/10pvwwxV+5oBAmyD0jklM3kyqJ2MDvTg0IT6h9XZXh72VgmqBaIOBbfPvrb8E9CtkCAfWHT8Wsjkt9Ga8rp6upV+7UAZrveJKy7Oyvrx++Cd1x/K4ts72veowoomhX5eclUcJxzqd/qTUCNSnE5v9Nms6EON61nfIolWtwQPN93wrqePNYIbP/SZo6z3LjJ/ywfZ95PJEQyfIg1FQUwH55dqwiezhbVu6mnING8TubvcihWBPGeAAhynAtWlSx4BEsAsQLwFZ2EBeqmRVIbo2hAgjDjr8Khm8awY6pupROXDFMuWn6lDKd6i7v7yirEwivrsC6mGjRF2prqRVQV4i6rDawtyZVOVosuUJ39OYHAzXfk+sAUM8nz9zu92neQ3cYrvMysYLlqhq8pGeRGJeypepBWHEEu0H5UepZ/RmXyAx95oPs9HD7LuHqbrMhZd68uGLAwF9v/YvF8OpQyUGKxRCRU7k/1LlMPOMbnhtWsEIH50wSkZEI=
file_glob: true
file: "$HOME/cr-release/*"
on:
tags: true

0 comments on commit d22d651

Please sign in to comment.