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 a209256
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 41 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,15 @@ 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, 'develop') }}
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: |
export LOWERCASE_BRANCH=${GITHUB_REF_NAME,,}
export CLEAN_BRANCH=$(echo $LOWERCASE_BRANCH | sed 's/_/-/g; s/\//-/g; s/+/-/g')
./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 a209256

Please sign in to comment.