Skip to content

Maven central ci publish #1

Maven central ci publish

Maven central ci publish #1

Workflow file for this run

name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 25
cache: maven
server-id: central
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG }}
- name: Set project version
run: ./mvnw -B --no-transfer-progress -f Java/Concentus/pom.xml versions:set -DnewVersion=${{ github.ref_name }} -DgenerateBackupPoms=false
- name: Deploy to Maven Central
run: ./mvnw -B --no-transfer-progress -f Java/Concentus/pom.xml clean deploy
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}