Create zip file during Travis deployment

pull/1/head
Alex Beregszaszi 8 years ago
parent 95bff0999d
commit 175182913f
  1. 2
      .travis.yml
  2. 3
      ci/deploy_from_travis.sh

@ -16,7 +16,7 @@ env:
- COMMIT_AUTHOR_EMAIL="chris@ethereum.org"
- COMMIT_AUTHOR="Travis CI"
- PUSH_REPO="git@github.com:ethereum/browser-solidity.git"
- FILES_TO_PACKAGE="assets background.js build icon.png index.html manifest.json README.md"
- FILES_TO_PACKAGE="assets background.js build icon.png index.html manifest.json README.md browser-solidity-*.zip"
cache:
directories:
- node_modules

@ -10,6 +10,9 @@ git checkout --orphan gh-pages
git rm --cached -r .
echo "# Automatic build" > README.md
echo "Built website from {$SHA}. See https://github.com/ethereum/browser-solidity/ for details." >> README.md
echo "To use an offline copy, download browser-solidity-$SHA.zip." >> README.md
# ZIP the whole directory
zip -r browser-solidity-$SHA.zip .
# -f is needed because "build" is part of .gitignore
git add -f $FILES_TO_PACKAGE
git commit -m "Built website from {$SHA}."

Loading…
Cancel
Save