Skip to content

Commit

Permalink
only publish for tags or for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tschuehly committed Nov 2, 2023
1 parent 70396c4 commit 72a12de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
./mvnw test
publish:
needs: test
if: github.ref_name == 'master' || contains(github.ref_name, 'SNAPSHOT')
if: github.ref_type == 'tag' || contains(github.ref_name, 'SNAPSHOT')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 72a12de

Please sign in to comment.