Skip to content

release

release #4

Workflow file for this run

---
name: release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
cache: maven
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: GPG_SECRET_KEY_PASSPHRASE
- name: Release
run: |
git config --global user.name 'github actions'
git config --global user.email '[email protected]'
mvn --batch-mode -Darguments=-DskipTests -DpushChanges=false release:prepare
git push --atomic -v --follow-tags
mvn -Pdeploy --batch-mode -Darguments=-DskipTests release:perform
env:
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_SECRET_KEY_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}