Skip to content

Commit 3e95e16

Browse files
authored
Update build.yml
Skip `publish` if not on `master` Signed-off-by: Gregory Mitchell <grmitchell713@gmail.com>
1 parent e0f707b commit 3e95e16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
needs: build
104104
name: Publish to Repository
105+
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'master' }}
105106
timeout-minutes: 30
106107

107108
steps:
@@ -118,4 +119,4 @@ jobs:
118119
env:
119120
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
120121
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
121-
run: ./gradlew clean build publish -x test
122+
run: ./gradlew clean build publish -x test

0 commit comments

Comments
 (0)