Skip to content

Basic with Gradle action #9

Basic with Gradle action

Basic with Gradle action #9

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/main' }}
- name: Execute Gradle build
run: ./gradlew build