productionize
parent
298c6cbabc
commit
e2b6e4b4c5
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue