Skip to content

Gradle Publish

Gradle Publish #8

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