feat: 1.20.6 ~ 1.21 용 #159
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: Publish to Sonatype Repository | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
permissions: | ||
contents: read | ||
env: | ||
nexusUsername: admin | ||
nexusPassword: ${{ secrets.NEXUS_PASSWORD }} | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '21 | ||
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 publishAllPublicationsToMavenRepository |