Skip to content

Commit

Permalink
Fixing GitHub Actions (#27)
Browse files Browse the repository at this point in the history
+ Don't run publish on PRs to master
+ Don't run publish on master
  • Loading branch information
tginsberg authored Oct 26, 2024
1 parent b23126b commit 90561b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: ./gradlew build --no-daemon

- name: Publish
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/master' && !(github.event_name == 'pull_request' && github.base_ref == 'master')
run: ./gradlew publish --no-daemon
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
Expand Down

0 comments on commit 90561b4

Please sign in to comment.