diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cebd62a9..77684f07 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -82,7 +82,11 @@ jobs: deploy: name: Deploy needs: build - if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' + if: >- + !cancelled() && + needs.build.result == 'success' && + github.event_name != 'pull_request' && + github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - name: Deploy to Server