diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index f7f89f5..2ff62a3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -54,21 +54,21 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Import GPG key - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: crazy-max/ghaction-import-gpg@v7 with: gpg_private_key: ${{ secrets.OSS_SONATYPE_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.OSS_SONATYPE_GPG_PASSPHRASE }} - name: Build and verify with Maven - if: github.event_name != 'push' || (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop') + if: github.event_name != 'push' || github.ref != 'refs/heads/main' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: ./mvnw clean verify -U -B --file pom.xml -s settings.xml - name: Build and deploy with Maven - if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OSS_SONATYPE_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}