Skip to content

New

New #418

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
if: startsWith(github.event.head_commit.message, '[CI skip]') == false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}"
restore-keys: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}"
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew clean shadowJar
- name: Get build artifact ready
run: mkdir staging && cp build/libs/*.jar staging
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: preview-build
path: staging