Skip to content

v1.3.1

v1.3.1 #31

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@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Cache gradle files
uses: actions/cache@v3
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@v3
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 }}