Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,28 @@ jobs:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Set version
run: ./mvnw --batch-mode versions:set versions:commit -DnewVersion="${VERSION}" -DprocessAllModules=true
- name: Deploy release
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USER }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: ./mvnw --batch-mode clean license:format deploy
- name: Commit and tag new version
run: |
git config user.name "Talsma CI"
git config user.email "ci-user@talsma-ict.nl"
git commit -sam "Release: Set project version to ${VERSION}"
git tag -m "Release version ${VERSION}" "${VERSION}"
git push --follow-tags
- name: Deploy release
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.SONATYPE_USER }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
# run: ./mvnw --batch-mode clean license:format deploy
run: ./mvnw --batch-mode clean license:format verify
- name: Create Github release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.VERSION }}
name: Release ${{ env.VERSION }}
draft: true
files: |
target/*.jar
- name: Set next snapshot version
run: |
read base minor suffix <<<$(echo "${VERSION}" | perl -pe 's/^(.*?)([0-9]+)([^0-9]*)$/\1 \2 \3/')
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- Artifact identification -->
<groupId>nl.talsmasoftware.misc</groupId>
<artifactId>misc-java-utils</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.1-patch2-SNAPSHOT</version>
<packaging>jar</packaging>

<!-- Project information -->
Expand Down