deployment to preview server

This commit is contained in:
Your Name 2023-02-08 18:07:13 -05:00 committed by Henri Dickson
parent a2cb460bea
commit 1a6b673ced

18
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Deployment
on:
push:
branches:
- main
jobs:
deployment:
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 }}