Skip to content

Commit

Permalink
Setup auto deployment for development branch
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyx512 authored Oct 20, 2020
1 parent 32b6da5 commit 08e6d7f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: SSH and Deploy Dev
on:
push:
branches:
- development

jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Execute remote command using SSH credentials
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
. /home/chenyx/dev_deploy.sh

0 comments on commit 08e6d7f

Please sign in to comment.