Skip to content

Release to Mave

Release to Mave #4

Workflow file for this run

name: Release to Mave
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
env:
TAG: ${{ github.event.release.tag_name }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_EXECUTABLE: ${{ secrets.GPG_EXECUTABLE }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
steps:
- name: Import GPG keys
run: |
echo $GPG_SECRET_KEYS | base64 --decode | gpg --batch --import
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust
- name: Use checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java 8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
cache: 'maven'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: GPG_SECRET_KEYS
gpg-passphrase: GPG_PASSPHRASE
- name: Deploy
run: mvn deploy