Skip to content

Commit

Permalink
Merge pull request #12 from telekom/fix/trigger-for-gradle-publish-wo…
Browse files Browse the repository at this point in the history
…rkflow

Fix trigger and versioning for gradle-publish forkflow
  • Loading branch information
ledex authored Feb 7, 2024
2 parents 86f0c55 + 1c64a6f commit 80b834f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# SPDX-License-Identifier: Apache-2.0

name: Gradle Build
on: release
on:
release:
types: [published]
jobs:
gradle:
runs-on: ubuntu-latest
Expand All @@ -23,4 +25,4 @@ jobs:
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
PUBLISH_GPG_PRIVATE_KEY: ${{ secrets.PUBLISH_GPG_PRIVATE_KEY }}
PUBLISH_GPG_PASSPHRASE: ${{ secrets.PUBLISH_GPG_PASSPHRASE }}
run: ./gradlew -Pversion=${{ github.event.release.name }} publish
run: ./gradlew -Pversion=${{ github.event.release.name }} publish
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ publishing {

groupId = 'de.telekom'
artifactId = 'json-filter'
version = '1.0.0'
version = project.properties['version']
from components.java

pom {
Expand Down

0 comments on commit 80b834f

Please sign in to comment.