Skip to content

Deploy to Production #115

Deploy to Production

Deploy to Production #115

Workflow file for this run

name: Deploy to Production
on:
workflow_run:
workflows: ["CI Build Check"]
types:
- completed
jobs:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: SSH Deploy
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
bash "$HOME/website/deploy.sh"