Update test-build-deploy.yml

This commit is contained in:
ereti
2021-10-28 03:16:18 +01:00
committed by GitHub
parent 234db1c033
commit f1549ab563
+2 -1
View File
@@ -50,6 +50,7 @@ jobs:
docker-push:
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -88,7 +89,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: [docker-push]
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: Run deploy script on server
uses: appleboy/ssh-action@master