Merge branch 'hotfix/NettyFix' #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |