Bump django from 3.2.18 to 3.2.20 #215
Workflow file for this run
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 to Server | |
on: | |
pull_request: | |
# Change to merge when implemented (still beta) | |
types: [closed] | |
branches: | |
- master | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using key | |
uses: appleboy/[email protected] | |
if: github.event.pull_request.merged == true | |
with: | |
host: ${{ secrets.host }} | |
username: ${{ secrets.user }} | |
key: ${{ secrets.id }} | |
port: ${{ secrets.port }} | |
script: | | |
cd ${{ secrets.deploy_dir }} | |
. venv-prod/bin/activate | |
cd website | |
git pull | |
python -m pip install --upgrade pip | |
pip install --upgrade --force-reinstall -r prod_requirements.txt | |
python manage.py migrate | |
python manage.py collectstatic --noinput | |
python manage.py compilemessages | |
echo "${{ secrets.dingseboms_password }}" | sudo -S systemctl restart gunicorn |