Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Basic with Gradle action #2

Basic with Gradle action

Basic with Gradle action #2

name: Basic with Gradle action
on: workflow_dispatch
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
# Only write to the cache for builds on the 'master' branch.
# Builds on other branches will only read existing entries from the cache.
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Execute Gradle build
run: ./gradlew build