Skip to content

Java CD with Gradle #19

Java CD with Gradle

Java CD with Gradle #19

Workflow file for this run

name: Java CD with Gradle
on:
workflow_dispatch:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build
- name: Publish with gradle
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_NAME }}
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}
RELEASE: true