Skip to content
Permalink
Browse files

Fixes zipping of repository content on travis build

  • Loading branch information...
Crease29 committed Feb 28, 2018
1 parent 88d2859 commit af7166b5b43d772e7bf58acf80ffd9300f998762
Showing with 6 additions and 4 deletions.
  1. +2 −2 .travis.yml
  2. +4 −2 build.sh
@@ -12,7 +12,7 @@ deploy:
provider: releases
api_key:
secure: U2OcY4bAhmo+eoRJ6UJE2uRkPyx+FVpnqCYO9JvJKrNiEgrxttQLyUszz/wVjJ9or4doUyWQ2B2qsmzZHJZDT8nxG9MIbEy/F4ppJdOE0+pbRj3YXDlJp/BsrctyIq8mDMD93h43fBnl06Wyyx4AQDmrvZr0u+kqviVEh7nRgVar0UiUc7pWNCxUAebIvDE9mbBdktdHnfjCQ7Wq0Y/N1CMLeBw9W8LZiurnk5e629WWJcVkfiVaEQGCCxLVBcjpyjXJXUnoewcMPzLvEBK0HdCyWcy8cPiDKvQz/ll5Aut5x8GZlkLc2PoPOJNtgC93CavZq1N0wvlVr4a1qCw8utshrjD6m9d04jVFjfgtpkJrloMTPOxrOR0VbPf8PvzhRQUYHHSpB4wmZEBR0otnNRhxj+eUD46+NLQpSutIoQ78gKHeuT6GdS2REh6PZ/JphMubmTAb502ONfCOtiC6GOz2smAoeN5c9/eCJag9yYdtU/2OqJ3a6dJM/isua5G7Edq/KBy4pXXk8+9jK21kQ6VjAENHn5D1Yh6edf0EDWIdZRcdppyk3OyGqoLhqCF7yoRpz36cBpqTBk5XLmNwgfsaPvaGTLhBhwbCx7S0dIzVkYSMABK2ftQi+2p1nRPe71dIe46/w0etvdFXwjXiuCYE+DPoIN2NE9mjnp+6PzY=
file: FroshGrafana-*.zip
file: FroshGrafana/FroshGrafana-*.zip
file_glob: true
on:
tags: true
tags: true
@@ -2,12 +2,14 @@

commit=$1
if [ -z ${commit} ]; then
commit=$(git tag | tail -n 1)
commit=$TRAVIS_COMMIT
if [ -z ${commit} ]; then
commit="master";
fi
fi

echo "Packing commit/release: ${commit}"

# Build new release
mkdir -p FroshGrafana
git archive --format zip --output FroshGrafana/FroshGrafana-${commit}.zip $1
git archive HEAD --format zip --output FroshGrafana/FroshGrafana-${commit}.zip

0 comments on commit af7166b

Please sign in to comment.
You can’t perform that action at this time.