Skip to content

Maven Release Package #13

Maven Release Package

Maven Release Package #13

Workflow file for this run

name: Maven Release Package
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Build with Maven
run: mvn clean install -B -P release --file pax-sdk/pom.xml
- name: Sign and Deploy to OSSRH
run: mvn deploy -B -P release --settings pax-sdk/settings.xml --file pax-sdk/pom.xml
env:
GPG_EXECUTABLE: gpg
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}