Skip to content

Release 1.8.0

Release 1.8.0 #14

Workflow file for this run

name: Deploy via SSH
on:
push:
branches:
- stable
jobs:
deploy:
name: Deploy to SSH Server
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run deployment script
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
request_pty: true
script_stop: true
script: |
become capx-backend git -C '$HOME/www/python/src' pull origin stable
become capx-backend webservice python3.11 shell -- webservice-python-bootstrap
become capx-backend webservice python3.11 shell -- '$HOME/www/python/venv/bin/python' '$HOME/www/python/src/manage.py' migrate
become capx-backend webservice python3.11 shell -- '$HOME/www/python/venv/bin/python' '$HOME/www/python/src/manage.py' collectstatic --noinput
become capx-backend webservice python3.11 restart
become capx-backend webservice python3.11 status