Skip to content

Use max instead of sum on the times count for the denominator (#168) #93

Use max instead of sum on the times count for the denominator (#168)

Use max instead of sum on the times count for the denominator (#168) #93

Workflow file for this run

name: Deploy to Production
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout production branch
uses: actions/checkout@v2
with:
ref: production
- name: Install SSH
run: sudo apt-get update && sudo apt-get install -y openssh-client
- name: SSH into machine and restart service
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
port: ${{ secrets.SSH_PORT }}
script: |
cd MuoVErsi
git checkout production
git pull
venv/bin/python -m pip install -r requirements.txt
venv/bin/alembic upgrade head
sudo systemctl restart muoversi