Gradle Publish #6
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 | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Gradlew clean publishMavenJavaPublicationToMavenRepository | |
env: | |
REPO_USER: ${{ secrets.REPO_USER }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} | |
run: ./gradlew clean publishMavenJavaPublicationToMavenRepository |