diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index b9bd5bc..2d189bb 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -31,7 +31,7 @@ jobs: - name: "Build package and run tests" run: "mvn --batch-mode test" - - if: "github.event_name != 'pull_request'" + - if: "${{github.event_name != 'pull_request' && github.ref == 'refs/heads/main'}}" name: "Deploy to GitHub" env: GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"