Skip to content

Creating release by mihxil on REL-7.9-SNAPSHOT #20

Creating release by mihxil on REL-7.9-SNAPSHOT

Creating release by mihxil on REL-7.9-SNAPSHOT #20

Workflow file for this run

name: release
run-name: Creating release by ${{ github.actor }} on ${{ github.ref_name }}
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
if: startsWith(github.ref, 'refs/heads/REL-')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
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
cache: maven
- uses: oleksiyrudenko/[email protected]
with:
global: true
name: 'github $GITHUB_ACTOR'
email: '[email protected]'
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Release
run: mvn -Pdeploy,ossrh --batch-mode -Darguments=-DskipTests release:prepare release:perform
env:
SONATYPE_USERNAME: vpro
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SECRET_KEY_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}