Skip to content

Merge branch 'staging' #24

Merge branch 'staging'

Merge branch 'staging' #24

Workflow file for this run

name: Production Deployment Workflow
on:
push:
branches: [master]
jobs:
deploy_job:
runs-on: ubuntu-latest
steps:
- name: deploy to production server with ssh
uses: appleboy/ssh-action@master
with:
host: ${{secrets.PROD_HOST}}
username: ${{secrets.PROD_USER}}
key: ${{secrets.PROD_SSH_KEY}}
port: ${{secrets.PROD_PORT}}
script: |
sudo -u cosmos sh ~/deploy.sh
sudo systemctl restart gunicorn nginx
- name: wait for restart
run: sleep 10
- name: check status code
uses: lakuapik/gh-actions-http-status@v1
with:
sites: '["https://cosmostue.nl"]'
expected: "[200]"