Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
trigger workflow when released.
  • Loading branch information
LittleJake committed Sep 4, 2021
1 parent bf05db0 commit fb0550c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Deploy

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

release:
types: [ released ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Setup SSH
uses: kielabokkie/[email protected]
uses: LittleJake/[email protected]
with:
# Private key required to access the host
ssh-private-key: ${{ secrets.SSH_PK }}
Expand All @@ -22,5 +19,4 @@ jobs:
- name: Deployment
run: |
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_IP }} -p ${{ secrets.SSH_PORT }} "cd ${{ secrets.SSH_DEVELOP_PATH }};sudo git pull;sudo chown -R apache:apache ." >/dev/null 2>&1
exit
exit

0 comments on commit fb0550c

Please sign in to comment.