generated from it-at-m/oss-repository-en-template
-
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
1 changed file
with
19 additions
and
0 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 |
---|---|---|
|
@@ -20,8 +20,10 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
|
||
- name: Setup git user | ||
uses: fregante/setup-git-user@v2 | ||
|
||
- name: Set up JDK 21 and OSSRH auth / GPG signing | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -33,6 +35,7 @@ jobs: | |
server-password: CENTRAL_PASSWORD | ||
gpg-private-key: ${{ secrets.gpg_private_key }} | ||
gpg-passphrase: SIGN_KEY_PASS | ||
|
||
- name: Perform maven release | ||
run: > | ||
mvn -B -ntp release:prepare release:perform \ | ||
|
@@ -44,6 +47,7 @@ jobs: | |
SIGN_KEY_PASS: ${{ secrets.gpg_passphrase }} | ||
CENTRAL_USERNAME: ${{ secrets.sonatype_username }} | ||
CENTRAL_PASSWORD: ${{ secrets.sonatype_password }} | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
|
@@ -53,3 +57,18 @@ jobs: | |
prerelease: false | ||
generate_release_notes: true | ||
|
||
- name: Update files | ||
uses: MathieuSoysal/[email protected] | ||
with: | ||
files: README.md # List of files to update | ||
prefix: "<version>" # Prefix before the version, default is: "" | ||
with-checkout: false # If you don't want to checkout the repo, default is: true | ||
|
||
- name: Push changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
committer_name: GitHub Actions | ||
committer_email: [email protected] | ||
add: . | ||
message: ':bookmark: (readme) new maven release' | ||
|