Skip to content

Publish Maven

Publish Maven #8

Workflow file for this run

name: Publish Maven
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Configure GPG Key
run: |
echo -n "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import --batch
- name: Publish package
run: mvn --batch-mode deploy -Dgpg.passphrase=${{ secrets.GPG_PASSWORD }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}