Skip to content

Commit

Permalink
fix: Move snapshot publish to extra step in build
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisingenhaag committed Feb 26, 2024
1 parent 8ae7e4c commit 8d01439
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 41 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 60
min-coverage-changed-files: 80
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request'
- name: Execute Gradle snapshot publish
if: !contains(github.ref, "main") && !contains(github.ref, "master") && !contains(github.ref, "developer")
env:
PUBLISH_USERNAME: ${{ secrets.PUBLISH_USERNAME }}
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
PUBLISH_GPG_PRIVATE_KEY: ${{ secrets.PUBLISH_GPG_PRIVATE_KEY }}
PUBLISH_GPG_PASSPHRASE: ${{ secrets.PUBLISH_GPG_PASSPHRASE }}
run: ./gradlew -Pversion=0.0.0-${{ github.ref_name }}-SNAPSHOT publish
40 changes: 0 additions & 40 deletions .github/workflows/gradle-publish-snapshot.yml

This file was deleted.

0 comments on commit 8d01439

Please sign in to comment.