Skip to content

v2.0.0.0

v2.0.0.0 #11

# 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: Build and Publish with Gradle
run: ./gradlew build # publish
env:
USERNAME: ${{ secrets.MAVEN_NAME }}
TOKEN: ${{ secrets.MAVEN_SECRET }}
LUXIOUS_NEXUS_USER: ${{ secrets.MAVEN_NAME }}
LUXIOUS_NEXUS_PASS: ${{ secrets.MAVEN_SECRET }}