-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.22 KB
/
1.8.9.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
name: Build 1.8.9
on:
push:
paths:
- 'MinecraftMod/forge/1.8.9/**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup JDK
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 8
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
# Build Core
- name: Build/Install Core
working-directory: ./MinecraftMod/core
run: './gradlew publishToMavenLocal'
# Setup Minecraft Forge Workspace
- name: Setup Forge Workspace
working-directory: ./MinecraftMod/forge/1.8.9
run: './gradlew setupCiWorkspace --no-daemon'
# Build Minecraft Mod
- name: Build Mod
working-directory: ./MinecraftMod/forge/1.8.9
run: './gradlew build --no-daemon'
# Upload Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: forge 1.8.9
path: ./MinecraftMod/forge/1.8.9/build/libs/*.jar