Merge pull request #799 from hackerspace-ntnu/bug-load-i18n-missing #224
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: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using key | |
uses: appleboy/[email protected] | |
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 |