Commit 17518291 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Create zip file during Travis deployment

parent 95bff099
...@@ -16,7 +16,7 @@ env: ...@@ -16,7 +16,7 @@ env:
- COMMIT_AUTHOR_EMAIL="chris@ethereum.org" - COMMIT_AUTHOR_EMAIL="chris@ethereum.org"
- COMMIT_AUTHOR="Travis CI" - COMMIT_AUTHOR="Travis CI"
- PUSH_REPO="git@github.com:ethereum/browser-solidity.git" - 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: cache:
directories: directories:
- node_modules - node_modules
...@@ -10,6 +10,9 @@ git checkout --orphan gh-pages ...@@ -10,6 +10,9 @@ git checkout --orphan gh-pages
git rm --cached -r . git rm --cached -r .
echo "# Automatic build" > README.md echo "# Automatic build" > README.md
echo "Built website from {$SHA}. See https://github.com/ethereum/browser-solidity/ for details." >> 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 # -f is needed because "build" is part of .gitignore
git add -f $FILES_TO_PACKAGE git add -f $FILES_TO_PACKAGE
git commit -m "Built website from {$SHA}." git commit -m "Built website from {$SHA}."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment