Skip to content

Merge branch 'hotfix/NettyFix' #11

Merge branch 'hotfix/NettyFix'

Merge branch 'hotfix/NettyFix' #11

Workflow file for this run

name: Build and Publish to Maven
on:
push:
branches:
- master
jobs:
gradle_build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
gpg-private-key: ${{ secrets.GPG_KEY }}
gpg-passphrase: GPG_KEY_PASS
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build
- name: Publish to Maven Central
# We must -Psigning.gnupg.executable=gpg since setup-java provides gpg2 as gpg
run: ./gradlew publish -Psigning.gnupg.executable=gpg -Psigning.gnupg.keyName="${{ secrets.GPG_KEY_ID }}" -Psigning.gnupg.passphrase="${{ secrets.GPG_KEY_PASS }}"
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN_PASSWORD }}