-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: release workflow, combined into closeAndReleaseSonatypeStagingRe…
…pository
- Loading branch information
1 parent
309c4ac
commit b0e5c69
Showing
1 changed file
with
5 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ on: | |
default: false | ||
type: boolean | ||
version-increment-type: | ||
description: 'Which part of the version to increment:' | ||
description: "Which part of the version to increment:" | ||
required: true | ||
type: choice | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
default: 'patch' | ||
default: "patch" | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -73,7 +73,7 @@ jobs: | |
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: 'gradle' | ||
cache: "gradle" | ||
|
||
- name: Build and Publish To Sonatype | ||
env: | ||
|
@@ -82,19 +82,7 @@ jobs: | |
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
run: ./gradlew publishToSonatype | ||
|
||
- name: Close Sonatype Staging Repository | ||
env: | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
run: ./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository | ||
|
||
- name: Release Sonatype Staging Repository | ||
env: | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
run: ./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository | ||
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
if: inputs.prerelease != true && inputs.draft != true | ||
|
||
- uses: DevCycleHQ/release-action/[email protected] | ||
|
@@ -110,4 +98,4 @@ jobs: | |
- name: Display link to release | ||
run: | | ||
echo "::notice title=Release ID::${{ steps.create-release.outputs.release-id }}" | ||
echo "::notice title=Release URL::${{ steps.create-release.outputs.release-url }}" | ||
echo "::notice title=Release URL::${{ steps.create-release.outputs.release-url }}" |