Skip to content

Deploy

Deploy #29

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: [CI]
types: [completed]
branches: [main]
concurrency:
group: deploy
cancel-in-progress: true
jobs:
deploy:
name: Deploy to production
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: /opt/daivai/deploy.sh