add deploy script
This commit is contained in:
parent
681da681bb
commit
6605b1fe7d
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
/dist/
|
||||
/venv/
|
||||
*.egg-info/
|
10
deploy.sh
Executable file
10
deploy.sh
Executable 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'
|
Loading…
Reference in a new issue