Skip to content

[maven-release-plugin] prepare release v2.1.0 #5

[maven-release-plugin] prepare release v2.1.0

[maven-release-plugin] prepare release v2.1.0 #5

Workflow file for this run

name: Publish to maven central
on:
push:
tags:
- v2.**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Publish to Apache Maven Central
run: mvn deploy -Pci-cd
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
#MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}