-
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
German Osin
authored and
German Osin
committed
Jun 9, 2023
1 parent
03fe0c0
commit 9e17c93
Showing
4 changed files
with
49 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Maven Central release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_publish_package: | ||
name: Build and publish maven packages | ||
runs-on: ubuntu-latest | ||
concurrency: publishing | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
|
||
- name: Bump package version | ||
run: | | ||
docker run --rm \ | ||
-v $PWD:/src \ | ||
-w /src \ | ||
tomologic/bumpversion --current-version $(cat VERSION) patch VERSION | ||
- name: Deserialize secret key from base64 | ||
run: | | ||
echo '${{ secrets.SIGNING_SECRET_KEY }}' > /tmp/secret_key_base64 | ||
base64 -d /tmp/secret_key_base64 > /tmp/secret_key.gpg | ||
- name: Build and publish maven package | ||
run: ./gradlew --no-daemon | ||
-PsonatypeUsername=${{ secrets.SONATYPE_USERNAME }} | ||
-PsonatypePassword=${{ secrets.SONATYPE_PASSWORD }} | ||
-Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} | ||
-Psigning.password="${{ secrets.SIGNING_PASSWORD }}" | ||
-Psigning.secretKeyRingFile=/tmp/secret_key.gpg | ||
-Penv=prod | ||
clean publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
|
||
- name: Update repository with up-to-date submodules and version | ||
run: | | ||
git config --global user.email "german.osin@gmail.com" | ||
git config --global user.name "German Osin" | ||
if [ -n "$(git status --porcelain)" ] | ||
then | ||
git add . | ||
git commit -m "Bump package version" | ||
git push origin main | ||
fi |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.1-SNAPSHOT | ||
0.1.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version = 0.1-SNAPSHOT | ||
lombokVersion=1.18.24 | ||
jacksonVersion=2.13.3 | ||
kafkaVersion=3.2.3 | ||
|