Release 1.8.0 #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |