add deploy script

This commit is contained in:
Thomas Lindner 2022-12-29 15:46:38 +01:00
parent 681da681bb
commit 6605b1fe7d
2 changed files with 13 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/dist/
/venv/
*.egg-info/

10
deploy.sh Executable file
View file

@ -0,0 +1,10 @@
set -e
[ -d venv ] || virtualenv venv
. venv/bin/activate
pip install build tox
tox
python -m build
ssh pi@blunderboard.igloo.icmp.camp rm -f 'blunderboard-*.whl'
scp dist/blunderboard-*.whl pi@blunderboard.igloo.icmp.camp:
ssh pi@blunderboard.igloo.icmp.camp blunderboard/venv/bin/pip uninstall -y blunderboard
ssh pi@blunderboard.igloo.icmp.camp blunderboard/venv/bin/pip install 'blunderboard-*.whl'