File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010 steps :
1111 - uses : actions/checkout@v4
12- with :
12+ with :
1313 fetch-depth : 0
14- - name : Get Fetch Tags
14+ - name : Get Fetch Tags
1515 run : git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin
1616 if : " !contains(github.ref, 'refs/tags')"
17- - name : Set up JDK 17
18- uses : actions/setup-java@v4
19- with :
20- java-version : ' 17'
17+ - name : Set up JDK 17
18+ uses : actions/setup-java@v4
19+ with :
20+ java-version : ' 17'
2121 distribution : ' zulu'
22- - name : Grant execute permission for gradlew
22+ - name : Grant execute permission for gradlew
2323 run : chmod +x gradlew
24- - name : Build with Gradle
24+ - name : Build with Gradle
2525 run : ./gradlew build
26- - name : Get Release Version
26+ - name : Get Release Version
2727 id : get_version
2828 run : VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
29- - name : Upload git-plugin jar
29+ - name : Upload git-plugin jar
3030 uses : actions/upload-artifact@v4
31- with :
31+ with :
3232 # Artifact name
3333 name : Grails-Plugin-${{ steps.get_version.outputs.VERSION }}
3434 # Directory containing files to upload
Original file line number Diff line number Diff line change @@ -11,22 +11,22 @@ jobs:
1111 name : Upload Release Asset
1212 runs-on : ubuntu-latest
1313 steps :
14- - name : Checkout code
14+ - name : Checkout code
1515 uses : actions/checkout@v4
16- with :
16+ with :
1717 fetch-depth : 0
1818
19- - name : Set up JDK 11
20- uses : actions/setup-java@v4
21- with :
22- java-version : ' 11'
19+ - name : Set up JDK 11
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : ' 11'
2323 distribution : ' zulu'
24- - name : Build with Gradle
24+ - name : Build with Gradle
2525 run : ./gradlew build
26- - name : Get Release Version
26+ - name : Get Release Version
2727 id : get_version
2828 run : VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
29- - name : Create Release
29+ - name : Create Release
3030 id : create_release
3131 run : |
3232 gh release create \
3636 build/libs/git-plugin-${{ steps.get_version.outputs.VERSION }}.jar
3737 env :
3838 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39- - name : Publish to Maven Central
39+ - name : Publish to Maven Central
4040 run : ./gradlew -PsigningKey=${SIGNING_KEY_B64} -PsigningPassword=${SIGNING_PASSWORD} -PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} publishToSonatype closeAndReleaseSonatypeStagingRepository
4141 env :
4242 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ jobs:
1212 name : Upload Release Asset
1313 runs-on : ubuntu-latest
1414 steps :
15- - name : Checkout code
15+ - name : Checkout code
1616 uses : actions/checkout@v4
17- with :
17+ with :
1818 fetch-depth : 0
1919
20- - name : Set up JDK 11
21- uses : actions/setup-java@v4
22- with :
23- java-version : ' 11'
20+ - name : Set up JDK 11
21+ uses : actions/setup-java@v4
22+ with :
23+ java-version : ' 11'
2424 distribution : ' zulu'
25- - name : Build with Gradle
25+ - name : Build with Gradle
2626 run : ./gradlew build
27- - name : Get Release Version
27+ - name : Get Release Version
2828 id : get_version
2929 run : VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
30- - name : Publish to Maven Central
30+ - name : Publish to Maven Central
3131 run : ./gradlew -PsigningKey=${SIGNING_KEY_B64} -PsigningPassword=${SIGNING_PASSWORD} -PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} publishToSonatype closeAndReleaseSonatypeStagingRepository
3232 env :
3333 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
You can’t perform that action at this time.
0 commit comments