File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 23
23
distribution : ' temurin'
24
24
server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
25
25
settings-path : ${{ github.workspace }} # location for the settings.xml file
26
-
27
26
- name : Build with Gradle
28
- uses : gradle/gradle-build-action@v3
29
- with :
30
- arguments : build
27
+ run : ./gradlew clean build
Original file line number Diff line number Diff line change 20
20
distribution : ' temurin'
21
21
- name : Set Release Version as an environment variable
22
22
run : echo "PUBLISH_VERSION=$(echo ${{ github.event.release.tag_name }})" >> $GITHUB_ENV
23
- - name : Publish package
24
- uses : gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1
25
- with :
26
- arguments : -Pversion=${{ env.PUBLISH_VERSION }} publishToSonatype closeAndReleaseSonatypeStagingRepository
23
+ - name : Publish Package
24
+ run : ./gradlew -Pversion=${{ env.PUBLISH_VERSION }} publishToSonatype closeAndReleaseSonatypeStagingRepository
27
25
env :
28
26
ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.SONATYPE_USERNAME }}
29
27
ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.SONATYPE_PASSWORD }}
You can’t perform that action at this time.
0 commit comments