Skip to content

Release 2.0.2

Release 2.0.2 #48

Workflow file for this run

name: Bloop Maven Release
run-name: Release ${{ inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: "Version to release"
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Apache Maven Central
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
# server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
# server-username: MAVEN_USERNAME
# server-password: MAVEN_CENTRAL_TOKEN
# gpg-private-key: ${{ secrets.PGP_SECRET }}
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
# env:
# MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
# MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
- name: Setup git profile
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "123456+github-actions[bot]@users.noreply.github.com"
- name: Import GPG key manually
run: |
mkdir -p /home/runner/.gnupg
chmod 700 /home/runner/.gnupg
echo "${{ secrets.PGP_SECRET }}" | base64 -d | gpg --import --batch --no-tty
echo "allow-loopback-pinentry" >> /home/runner/.gnupg/gpg-agent.conf
gpgconf --kill gpg-agent || true
sleep 1
gpg --list-secret-keys
echo "GPG version:"
gpg --version | head -1
env:
GNUPGHOME: /home/runner/.gnupg
- name: Publish to Apache Maven Central
run: |
mvn clean -Darguments=-DskipTests release:prepare release:perform -DreleaseVersion=${{github.event.inputs.version}} -Prelease
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
GNUPGHOME: /home/runner/.gnupg
GPG_TTY: /dev/null
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}