This repository has been archived by the owner on Feb 24, 2024. It is now read-only.
Lighting - Client not working as expected (#139) #90
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: Gradle Publish to Maven Central | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set outputs | |
id: vars | |
run: | | |
echo "short_commit_hash=${GITHUB_SHA::10}" >> $GITHUB_OUTPUT | |
- name: Publish to Sonatype | |
env: | |
MINESTOM_VERSION: ${{ steps.vars.outputs.short_commit_hash }} | |
MINESTOM_CHANNEL: release | |
run: | | |
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | |
echo "Version: ${SHORT_COMMIT_HASH}" >> $GITHUB_STEP_SUMMARY |