-
Notifications
You must be signed in to change notification settings - Fork 104
35 lines (34 loc) · 1.11 KB
/
fabric.yml
File metadata and controls
35 lines (34 loc) · 1.11 KB
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
name: Build Fabric mod with Gradle
on: [pull_request, push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
with:
persist-credentials: false
- name: Set up Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # 5.0.0
- name: Extract build version information
id: ref
run: .github/extract_refs.sh
- name: Set up JDK 21
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # 5.0.0
with:
distribution: 'temurin'
java-version: 21
check-latest: true
- name: Validate JSON files
run: python3 .github/validate_json.py
- name: Build with Gradle
run: ./gradlew build
- name: Upload compiled artifacts
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # 5.0.0
with:
name: WFGM-artifacts-${{ steps.ref.outputs.branch }}
path: build/libs/*.jar
if-no-files-found: error