Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Funkatronics authored Sep 20, 2023
1 parent 7dcf02e commit bffb5d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
publish:
runs-on: macos-latest
needs: build
if: ${{ github.event_name == 'release' }}
if: ${{ github.event_name == 'release' && startsWith(github.event.release.tag_name, 'v') }}

steps:
- name: Checkout
Expand All @@ -58,10 +58,11 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish to Maven Central
run: ./gradlew clean publishAllPublicationsToMavenCentral --stacktrace
run: ./gradlew clean publishAllPublicationsToMavenCentral --stacktrace -P version=${TAG:1}
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ARTIFACT_SIGNING_PRIVATE_KEY_PASSWORD }}
TAG: ${{ github.event.release.tag_name }}

0 comments on commit bffb5d6

Please sign in to comment.