diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42acaa349..65402e1a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: publish-snapshot: needs: build runs-on: ubuntu-latest - if: github.repository == 'GradleUp/shadow' + if: github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4