Skip to content

Commit

Permalink
Merge pull request #105 from ThoughtWorksInc/publish-condition
Browse files Browse the repository at this point in the history
Avoid duplicate releases to Maven central
  • Loading branch information
Atry authored Mar 19, 2022
2 parents bfd2ea4 + 99e78ee commit 46f8133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 46f8133

Please sign in to comment.