Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Check release tag matches pom version
if: github.event_name == 'release'
run: |
VERSION=$(mvn -q help:evaluate -Dexpression=project.version -DforceStdout)
if [ "${GITHUB_REF_NAME#v}" != "$VERSION" ]; then
echo "::error::Release tag $GITHUB_REF_NAME does not match pom version $VERSION"
exit 1
fi

- name: Publish to Apache Maven Central
run: mvn clean deploy
env:
Expand Down
Loading