Skip to content

Commit 0ddfecf

Browse files
committed
feat: use reusable GitHub action
1 parent 757dd3b commit 0ddfecf

File tree

1 file changed

+3
-40
lines changed

1 file changed

+3
-40
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,6 @@ on:
66

77
jobs:
88
build:
9-
runs-on: ubuntu-20.04
10-
steps:
11-
- name: Checkout Repository
12-
uses: actions/checkout@v2
13-
with:
14-
persist-credentials: false
15-
fetch-depth: 0
16-
17-
- name: Enable Caching
18-
uses: actions/cache@v4
19-
with:
20-
path: |
21-
~/.gradle/caches
22-
~/.gradle/loom-cache
23-
~/.gradle/wrapper
24-
key: gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-${{ hashFiles('./gradle.properties') }}
25-
restore-keys: gradle
26-
27-
- name: Validate Gradle Wrapper
28-
uses: gradle/wrapper-validation-action@v1
29-
30-
- name: Setup JDK 21
31-
uses: actions/setup-java@v1
32-
with:
33-
java-version: 21
34-
35-
- name: Build
36-
run: ./gradlew clean forge:build fabric:build
37-
38-
- name: Capture Fabric Build Artifacts
39-
uses: actions/upload-artifact@v4
40-
with:
41-
name: Fabric Artifacts
42-
path: fabric/build/libs/
43-
44-
- name: Capture Forge Build Artifacts
45-
uses: actions/upload-artifact@v4
46-
with:
47-
name: Forge Artifacts
48-
path: forge/build/libs/
9+
uses: JamCoreModding/.github/.github/workflows/mod.yml@main
10+
with:
11+
java-version: 17

0 commit comments

Comments
 (0)