Skip to content

Commit

Permalink
ci: don't deploy releases outside tags
Browse files Browse the repository at this point in the history
Signed-off-by: Mariell Hoversholm <[email protected]>
  • Loading branch information
Mariell Hoversholm committed Dec 3, 2021
1 parent ac69bef commit ba0df68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-sonatype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
echo "::set-output name=snapshot::true"
fi
- name: Deploy to OSSRH
if: ${{ github.ref_type != 'tag' || steps.snapshot-check.outputs.snapshot == 'true' }}
if: ${{ github.ref_type != 'tag' && steps.snapshot-check.outputs.snapshot == 'true' }}
run: ./gradlew -PforceSign=true publish --no-daemon
env:
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
Expand Down

0 comments on commit ba0df68

Please sign in to comment.