-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.04 KB
/
nightly.yaml
File metadata and controls
42 lines (33 loc) · 1.04 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
36
37
38
39
40
41
42
name: Nightly Build
on: push
jobs:
build:
name: Compile and Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Java 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Grant Execute Permissions
run: chmod +x gradlew
- name: Set outputs
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build with Gradle
run: |
CURRENT_VERSION=$(grep "^mod_version=" gradle.properties | cut -d'=' -f2)
./gradlew build -Pmod_version="${CURRENT_VERSION}-${{ steps.vars.outputs.sha_short }}"
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: InteractiveMC-Build-${{ steps.vars.outputs.sha_short }}
path: |
fabric/build/libs/*.jar
neoforge/build/libs/*.jar
# todo add gametest