-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.43 KB
/
gradle.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build Gradle
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
# https://github.com/actions/checkout
- name: Check out Git repository
uses: actions/[email protected]
# https://github.com/gradle/gradle-build-action
- name: Setup Gradle
uses: gradle/actions/[email protected]
# https://github.com/gradle/wrapper-validation-action
- name: Wrapper validation
uses: gradle/actions/[email protected]
# https://github.com/actions/setup-java
- name: Set up JDK 21
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '21'
java-package: jdk
architecture: x64
cache: gradle
- name: Configure Git
run: git config --global user.name "Github Actions" && git config --global user.email "[email protected]"
- name: Make Gradlew executable
run: chmod +x ./gradlew
# https://github.com/nick-fields/retry
- name: Build project
uses: nick-invision/[email protected]
with:
max_attempts: 2
timeout_minutes: 5
command: ./gradlew build shadowJar
# https://github.com/actions/upload-artifact
- name: Upload build artifact
uses: actions/[email protected]
with:
name: DisableDamage
path: build/libs/DisableDamage-*.jar