Skip to content

v1.4.0

v1.4.0 #41

Workflow file for this run

name: Dev Builds
on:
push:
paths:
- "*.gradle"
- "gradle.properties"
- "src/**"
- ".github/**"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Cache gradle files
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build
- uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build/libs/
- name: Publish gradle plugin
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
run: |
./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}