diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d362543..c1287a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 - if: ${{ success() && github.event_name == 'pull_request' }} + if: ${{ success() && steps.last_release.outputs.tag_name != '' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }}