productionize

main
ChristopherBiscardi 2017-12-15 15:24:08 -08:00
parent 298c6cbabc
commit e2b6e4b4c5
No known key found for this signature in database
GPG Key ID: 703265E1DE405983
2 changed files with 22 additions and 0 deletions

View File

@ -12,3 +12,9 @@ before_script: yarn netlify-sass
script:
- yarn test
- yarn build
deploy:
provider: script
script: scripts/travis-deploy.sh
on:
branch: master

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
cd "$(dirname $0)"
pushd build/
find . -not -name "*.map" -type f | while read f; do
azure storage blob upload -q "$f" cabana "$f"
done
popd
pushd public
find img -type f | while read f; do
azure storage blob upload -q "$f" cabana "$f"
done
popd