Files
my-gradle-plugins/.gitea/workflows/build.yaml
T
woggioni 77961a66b8
CI / Compile, test and publish (push) Successful in 5m41s
bump gradle version to 9.7.1
2026-08-24 13:29:34 +08:00

42 lines
1.0 KiB
YAML

name: CI
on:
push:
branches: [ master ]
env:
JAVA_VERSION: '21'
GRADLE_VERSION: '8.14.5'
jobs:
build:
name: Compile, test and publish
runs-on: hostinger
timeout-minutes: 30
container:
image: gitea.woggioni.net/woggioni/gitea-runner/debian:latest
volumes:
- gitea-runner:/var/lib/gitea-runner
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'oracle'
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: ${{ env.GRADLE_VERSION }}
# Only the main branch writes to the cache; PRs/feature branches read-only
cache-read-only: false
- name: Run Gradle build
run: ./gradlew build
- name: Publish to Gitea
env:
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
run: ./gradlew build publish