-
Notifications
You must be signed in to change notification settings - Fork 30
50 lines (42 loc) · 1.04 KB
/
build.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
47
48
49
50
name: Mod Build
on:
workflow_dispatch:
push:
branches:
- releases/**
paths:
- src/**
- versions/**
- build.gradle
- gradle.properties
- settings.gradle
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
CI_BUILD: true
PR_BUILD: false
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup Java 21
uses: actions/[email protected]
with:
distribution: zulu
java-version: 21
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew build
- run: ./gradlew build publishMods
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}