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 artifact jar
29+ - name : Upload artifact jar
3030 uses : actions/upload-artifact@v4
31- with :
31+ with :
3232 # Artifact name
3333 name : SSHJ-Plugin-${{ steps.get_version.outputs.VERSION }}
3434 # Directory containing files to upload
Original file line number Diff line number Diff line change @@ -11,21 +11,21 @@ jobs:
1111 name : Publish Release
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
18- - name : Set up JDK 11
19- uses : actions/setup-java@v4
20- with :
21- java-version : ' 11'
18+ - name : Set up JDK 11
19+ uses : actions/setup-java@v4
20+ with :
21+ java-version : ' 11'
2222 distribution : ' zulu'
23- - name : Build with Gradle
23+ - name : Build with Gradle
2424 run : ./gradlew build
25- - name : Get Release Version
25+ - name : Get Release Version
2626 id : get_version
2727 run : VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
28- - name : Create Release
28+ - name : Create Release
2929 id : create_release
3030 run : |
3131 gh release create \
3535 build/libs/sshj-plugin-${{ steps.get_version.outputs.VERSION }}.jar
3636 env :
3737 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38- - name : Publish to Maven Central
38+ - name : Publish to Maven Central
3939 run : ./gradlew -PsigningKey=${SIGNING_KEY_B64} -PsigningPassword=${SIGNING_PASSWORD} -PsonatypeUsername=${SONATYPE_USERNAME} -PsonatypePassword=${SONATYPE_PASSWORD} publishToSonatype closeAndReleaseSonatypeStagingRepository
4040 env :
4141 SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
You can’t perform that action at this time.
0 commit comments