-
Notifications
You must be signed in to change notification settings - Fork 80
61 lines (51 loc) · 1.47 KB
/
_make-release-jar.yml
File metadata and controls
61 lines (51 loc) · 1.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# REQUIRES DATAGEN TO BE CALLED IN A JOB BEFORE THIS!!
name: Make Release JAR
on:
workflow_call:
inputs:
version:
required: true
type: string
jobs:
publish:
name: Publish Code as Releasable JAR - ${{ inputs.version }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
- name: Pull Built Generated Data
uses: actions/download-artifact@v6
with:
name: generated-data
path: neoforge-main/src/generated/resources
- name: Pull Compilation Data (Core)
uses: actions/download-artifact@v6
with:
name: build-core
path: core-api/build
- name: Pull Compilation Data (Main)
uses: actions/download-artifact@v6
with:
name: build-main
path: neoforge-main/build
- name: JAR
run: ./gradlew :neoforge-main:jar
env:
VERSION: ${{ inputs.version }}
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Store Built Assets
if: success()
uses: actions/upload-artifact@v6
with:
name: release-jars
path: neoforge-main/build/libs