diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 6e0c1b1..de162a0 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -46,5 +46,5 @@ jobs: - name: Publish to Maven Central Repository env: GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}} - if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' }} + if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && matrix.java == 8 && matrix.distribution == 'temurin' }} run: sbt ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease