Files
Ornot/.gitea/workflows/build.yml
Josh Chester 3d049720a9
Some checks failed
Build with cached gradle / Build-with-gradle (pull_request) Failing after 2m43s
Java Google Checkstyle / Checkstyle Linter (pull_request) Successful in 16s
enable gradle cache?
2026-01-24 00:43:31 -06:00

19 lines
629 B
YAML

name: Build with cached gradle
run-name: Building for ${{ gitea.actor }}
on: [pull_request]
jobs:
Build-with-gradle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '22'
cache: 'gradle'
# cache-dependency-path: | # optional
# sub-project/*.gradle*
# sub-project/**/gradle-wrapper.properties
- run: ./gradlew build --no-daemon
- run: ./gradlew publishAllPublicationsToGiteaRepository -PgradleKey="${{ secrets.GRADLE_KEY }}" --configuration-cache