Skip to content

Commit

Permalink
Do not publish snapshots, publish releases only on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed Jan 24, 2024
1 parent ddebe03 commit 155cded
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,8 @@ jobs:
else
echo "STATUS=release" >> $GITHUB_ENV
fi
- name: "publish snapshot"
if: "${{ env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}"
run: ./gradlew publishToSonatype
env:
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
- name: "publish release"
if: "${{ env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}"
if: "${{ env.STATUS == 'release' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}"
run: ./gradlew publishPlugins
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
Expand Down

0 comments on commit 155cded

Please sign in to comment.