diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f950c3a..c4ff7a06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: run: mvn clean package - name: Deploy - if: ${{ success() }} + if: ${{ success() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: mvn deploy --batch-mode -DskipTests -pl kirjasto -am \ No newline at end of file