-
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.
- Loading branch information
Showing
3 changed files
with
119 additions
and
61 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ on: | |
branches: ["main"] | ||
|
||
jobs: | ||
create-release: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -28,9 +28,18 @@ jobs: | |
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build Util | ||
run: mvn clean install -Prelease --file pom.xml | ||
server-id: central | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
|
||
- name: Build and Deploy Util | ||
run: mvn clean deploy -Pjavadoc,sign --file pom.xml | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSWORD }} | ||
|
||
- name: Get Util Version | ||
run: | | ||
|
@@ -39,9 +48,10 @@ jobs: | |
- name: Make Util Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "target/util-${{ env.version }}*.jar" | ||
prerelease: ${{ endsWith(env.version, 'SNAPSHOT') || contains(env.version, '-RC') }} | ||
artifacts: "target/util-${{ env.version }}*" | ||
name: "v${{ env.version }}" | ||
tag: "v${{ env.version }}" | ||
generateReleaseNotes: true | ||
skipIfReleaseExists: true | ||
|
||
|
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
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