-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (25 loc) · 818 Bytes
/
build.yml
File metadata and controls
26 lines (25 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
on:
push:
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: 'gradle'
- uses: gradle/actions/setup-gradle@v4
- name: Configure Git
run: git config --global user.email "no-reply@github.com" && git config --global user.name "Gitea Actions"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew shadowJar --no-daemon --stacktrace
- name: Rebuild on Failure
if: ${{ failure() }}
run: |
./gradlew clean cleanCache
./gradlew shadowJar --no-daemon --stacktrace