deployment to preview server
This commit is contained in:
parent
a2cb460bea
commit
1a6b673ced
1 changed files with 18 additions and 0 deletions
18
.github/workflows/deploy.yml
vendored
Normal file
18
.github/workflows/deploy.yml
vendored
Normal 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 }}
|
Loading…
Add table
Reference in a new issue