Skip to content

v2.0.0.0

v2.0.0.0 #4

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Gradle Publish & Release
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
gradle:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build and Publish with Gradle
run: ./gradlew build publish
env:
USERNAME: ${{ secrets.MAVEN_NAME }}
TOKEN: ${{ secrets.MAVEN_SECRET }}