-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (41 loc) · 1.3 KB
/
gradle.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
name: Java CI
on:
workflow_dispatch:
push:
paths:
- 'gradle.properties'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 8
- name: Cache
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle') }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --no-daemon
- name: Get file name
run: echo "file_path=$(find build/libs | grep '[0-9].jar')" >> $GITHUB_OUTPUT
id: var
- name: Upload to CurseForge
uses: itsmeow/curseforge-upload@v3
with:
token: ${{ secrets.CURSEFORGE_TOKEN }}
project_id: 386188
game_endpoint: minecraft
file_path: ${{ steps.var.outputs.file_path }}
changelog: See recent commits [here](https://github.com/eutropius225/MultiblockTweaker/commits/${{ github.sha }}).
changelog_type: markdown
# 1.12.2, Java 8
game_versions: 6756,4458
release_type: release
relations: jei:optionalDependency,crafttweaker:requiredDependency,gregtechce:requiredDependency