3.0.3 #32
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: Release ossrh | |
on: | |
release: | |
types: [released] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Release ossrh jobs | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Apache Maven Central | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
# It needs to be the same as the id corresponding to the snapshot Repository in pom.xml | |
server-id: ossrh | |
# env variable for username in deploy | |
server-username: MAVEN_USERNAME | |
# env variable for token in deploy | |
server-password: MAVEN_CENTRAL_TOKEN | |
# Value of the GPG private key to import | |
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | |
# env variable for GPG private key passphrase | |
gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
- name: Release to Apache Maven Central | |
run: mvn clean deploy -Prelease-ossrh | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_TOKEN }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |