Skip to content

chore(release): release version 5.0.0-26.0 #122

chore(release): release version 5.0.0-26.0

chore(release): release version 5.0.0-26.0 #122

Workflow file for this run

name: Release
on:
push:
tags: '**'
workflow_dispatch: {}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install gpg secret key
id: install-secret-key
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.gpg_private_key }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: |
mvn --batch-mode -Dgpg.passphrase="${{ secrets.gpg_passphrase }}" -Pdeploy clean deploy
env:
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_TOKEN }}