Skip to content

Commit 2efda81

Browse files
committed
ci(build): allow deployment to central repository only from master branch
1 parent ab0de20 commit 2efda81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: echo "${{ secrets.GPG_PK }}" | base64 --decode | gpg --import
4040

4141
- name: Publish to Maven Central
42-
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
42+
if: ${{ !startsWith(github.ref, 'refs/tags/v') && github.ref == 'refs/heads/master' }}
4343
env:
4444
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4545
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 commit comments

Comments
 (0)