-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 915 Bytes
/
Copy pathbuild.yml
File metadata and controls
38 lines (32 loc) · 915 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
27
28
29
30
31
32
33
34
35
36
37
38
name: Build mod jar
on:
[workflow_dispatch, push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# Full history + tags: the build derives the version prefix from the nearest git tag
# (git describe), which fails on the default shallow checkout and silently falls back
# to gradle.properties mod_version.
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v6
with:
gradle-version: 9.6.1
name: Set up Gradle
- name: Add permission
run: chmod +x ./gradlew
- name: Execute Gradle build
run: ./gradlew build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v7
with:
path: build/libs