Files
portal/build+deploy.sh
Thomas Dedek 67e2620bca add CI
2021-02-24 10:49:43 +01:00

19 lines
548 B
Bash
Executable File

#!/usr/bin/env sh
# Build site and deploy to remote via SSH
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
#set -o xtrace ## set -x : Print command traces before executing command
# clean up
rm -rf dist
# build
./build.py items.yml
# deploy
rsync -v --archive --delete dist/ \
ecg00-portal@ecg00.hostsharing.net:doms/my.ecogood.org/htdocs-ssl/
echo
echo Finished. See results at https://my.ecogood.org