Skip to content

Update dependency gradle to v8.12 #652

Update dependency gradle to v8.12

Update dependency gradle to v8.12 #652

Workflow file for this run

on:
push:
paths-ignore:
- docs/**
branches:
- main
- ver/**
pull_request:
paths-ignore:
- docs/**
branches:
- main
- ver/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Gradle
uses: gradle/[email protected]
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build
publish:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Setup Gradle
uses: gradle/[email protected]
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Publish to Maven
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_sparky983Username: ${{ secrets.MAVEN_NAME }}
ORG_GRADLE_PROJECT_sparky983Password: ${{ secrets.MAVEN_TOKEN }}