-
-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (35 loc) · 961 Bytes
/
minecraft.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
name: Compile LoTAS
on:
push:
branches: [ "dev" ]
jobs:
fabric:
permissions: write-all
runs-on: ubuntu-latest
if: github.repository == 'MinecraftTAS/LoTAS'
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: gradle
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: remapJar --no-daemon
gradle-version: 8.5
cache-disabled: true
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: LoTAS
path: build/libs/*.jar
- name: Upload to discord
uses: sinshutu/upload-to-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: build/libs/*.jar