Skip to content

Release 2.0.5

Release 2.0.5 #61

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@v7
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 }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key 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: Publish to Apache Maven Central
run: |
mvn clean install -DskipTests
mvn versions:set -DnewVersion=${{github.event.inputs.version}}
mvn clean deploy -DskipTests -Prelease
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}