Skip to content

Refactor actions

Refactor actions #1

Workflow file for this run

name: Run gradle build
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
workflow_call:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Build with Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build
- uses: actions/upload-artifact@v4
with:
path: build/libs/*.jar
name: build
retention-days: 7