From 3144494bb057811c1a958655dccd00cf172eb9c7 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Mon, 3 Jul 2023 13:23:58 -0600 Subject: [PATCH] Don't push to sonatype for pull request builds --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a893eb..5ae5f69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Test run: sbt compile test doc Debian/packageBin - name: Publish to Sonatype - if: ${{ github.repository == 'lucidsoftware/piezo' }} + if: ${{ github.repository == 'lucidsoftware/piezo' && github.event_name != 'pull_request' }} env: PGP_SECRET: ${{ secrets.PGP_SECRET }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}