Skip to content

Add ProtocolLib support and fix paper tab completer registration #19

Add ProtocolLib support and fix paper tab completer registration

Add ProtocolLib support and fix paper tab completer registration #19

Workflow file for this run

name: Publish to Maven Central Repository
on:
push:
branches: [ "main" ]
permissions:
contents: read
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
SIGNING_SECRET_KEY_RING_FILE: signing.gpg
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Import GPG Key
run: |
echo -n ${{ secrets.GPG_ENCODED_KEY }} | base64 --decode | gpg --batch --import
gpg --batch --pinentry-mode=loopback --yes --passphrase $SIGNING_PASSPHRASE --output $HOME/$SIGNING_SECRET_KEY_RING_FILE --export-secret-key $SIGNING_KEY_ID
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Prepare Gradle
uses: gradle/gradle-build-action@v2
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Publish to Sonatype Repository
run: gradle publishMavenCentralPublicationToSonatypeRepository