Skip to content

Commit

Permalink
Another updates to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
anikitenko committed Jun 14, 2018
1 parent 0e69e06 commit 96b6e98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ script:
before_deploy:
- |
export BODY="Detailed release information can be found at [CHANGELOG.md $TRAVIS_TAG](https://github.com/anikitenko/mini-sftp-client/blob/master/CHANGELOG.md#$(echo $TRAVIS_TAG | sed -e 's/\.//g'))"
export BODY="Detailed release information can be found at [CHANGELOG.md $TRAVIS_TAG](https://github.com/anikitenko/mini-sftp-client/blob/master/CHANGELOG.md#$(echo $TRAVIS_TAG | sed -e 's/\.//g' | tr '[:upper:]' '[:lower:]'))"
mkdir artifacts
export PRE_RELEASE=false
bash deploy.sh
Expand All @@ -48,13 +48,14 @@ before_deploy:
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: es9Y5dmO4kbLNIyPdjJm8dYa03LG9CiCdhjIBtvrRdWX1uPULh8+yFERdEANDzeE1AFkcfNU0vnLIIFVj5VyXfRyfvaNyLrDWkFSwF9q3rKvkcD6PNDZkong8zgAWNGDF6GRRErXTMXQzitNW2NHhhli/C6ai8Q0Ee+krnBeKavJCAylMrAsBXJd6JZmzk/ZVyni3Sg6zgnu/vruBpc3puXlonJsxlVkpHsdGOF7FC5WL2aIr50Mw8tdBlhXHhA3izFipblQCd2lHbrUpWOayB9zNBVvdJyxFMyoYK3Mn1WWNJ5UHC4HcvDMv3AMg7fanoEB8R5MMWrMeWWAYtfD8y7xNVtPUpquxyOgGTBCQdmL8EmcqUWalot4SkfxOdZIOeSsVQMOokORXM6iCHC5+cv2XUyRdSPKMok5sTXzfI3/9gOKU/I6k/v+V3TNUq/OTTOqnMJb8fHTjyK44ON9nbekckrC5yUq3n2GtHu5gUJfszkZVimRkjgUSDlRXUuNxrHd0m8O4mByHkwGj0ajDeeb+FYQCo9YJ1lPpiC9V7HeqfMF/+OEV5xModBElLQU/bEjipqN37N1shFifyIDJLBpVyodO1OpT705aRRl3EOUvt9LIiJXUUx+JTY6sOC2gg1mIZbo2hsLpaud6rUgdPC67ljy2gBmMC30UtpM+E8=
name: $TRAVIS_TAG
body: ${BODY}
prerelease: $PRE_RELEASE
name: $TRAVIS_TAG
file_glob: true
file: artifacts/*
skip_cleanup: true
on:
tags: true
condition: "$TO_DEPLOY = yes"
Expand Down
13 changes: 9 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

cd $TRAVIS_BUILD_DIR
cd "$TRAVIS_BUILD_DIR"

rm -rf node_modules
revel build github.com/anikitenko/mini-sftp-client mini-sftp-osx
Expand All @@ -23,9 +23,14 @@ cp mini-sftp-osx/mini-sftp-client-darwin artifacts/
cp mini-sftp-linux/mini-sftp-client-linux artifacts/
cp mini-sftp-windows/mini-sftp-client-windows.exe artifacts/

zip mini-sftp-osx.zip mini-sftp-osx
zip mini-sftp-linux.zip mini-sftp-linux
zip mini-sftp-windows.zip mini-sftp-windows
version="$(echo $TRAVIS_TAG | sed -e 's/^v//g')"
echo $version > mini-sftp-osx/.version
echo $version > mini-sftp-linux/.version
echo $version > mini-sftp-windows/.version

zip -r mini-sftp-osx.zip mini-sftp-osx
zip -r mini-sftp-linux.zip mini-sftp-linux
zip -r mini-sftp-windows.zip mini-sftp-windows

mv mini-sftp-osx.zip artifacts/
mv mini-sftp-linux.zip artifacts/
Expand Down

0 comments on commit 96b6e98

Please sign in to comment.