Skip to content

Add generated writeJsonTo(ByteBuf) method with protobuf JsonFormat co… #11

Add generated writeJsonTo(ByteBuf) method with protobuf JsonFormat co…

Add generated writeJsonTo(ByteBuf) method with protobuf JsonFormat co… #11

Workflow file for this run

name: Publish to Maven Central
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: temurin
cache: maven
server-id: central
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Show GPG key info
run: gpg --list-keys --keyid-format long
- name: Set version from tag
run: |
VERSION=${GITHUB_REF_NAME#v}
mvn -B -ntp versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false
- name: Publish artifacts
run: mvn -B -ntp -Prelease deploy