lib.itmens/.github/workflows/deploy.yml
2023-02-09 08:36:12 -05:00

21 lines
510 B
YAML

name: Deployment
on:
workflow_run:
workflows: ["all tests"]
branches: [main]
types:
- completed
jobs:
deployment:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Deployment
runs-on: ubuntu-latest
environment: preview
steps:
- name: ssh
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: ${{ vars.DEPLOY_SCRIPT }}