1.11.0 #34
Workflow file for this run
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
name: Maven Publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '11' | |
cache: 'maven' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Publish package | |
run: | | |
echo "on a tag -> set pom.xml <version> to ${GITHUB_REF##*/}" | |
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import | |
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust | |
mvn -B versions:set -DgenerateBackupPoms=false -DnewVersion=${GITHUB_REF##*/} | |
mvn -B -Possrh deploy | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }} | |
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | |
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} |