Skip to content

release

release #8

Workflow file for this run

---
name: release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/REL-')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: maven
server-id: vpro-ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: GPG_SECRET_KEY_PASSPHRASE
- uses: oleksiyrudenko/[email protected]
with:
global: true
name: 'github'
email: '[email protected]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Release
run: mvn -ntp -Pdeploy --batch-mode -Darguments=-DskipTests release:prepare release:perform
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SECRET_KEY_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}