diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index efe70d4..ead5d4e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,9 +69,11 @@ jobs: Deploy-to-EC2: runs-on: ubuntu-latest + needs: test-and-package + + steps: - name: Deploy to EC2 - if: success() uses: appleboy/ssh-action@v0.1.5 with: host: ${{ secrets.EC2_HOST }}