forked from WildBamaBoy/minecraft-comes-alive
-
Notifications
You must be signed in to change notification settings - Fork 63
67 lines (64 loc) · 2.02 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Java CI with Gradle
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
env:
MODRINTH_TOKEN: ${{ secrets.MR_API_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CF_API_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout Commit
uses: actions/checkout@v3
- name: Fetch Tags
run: git fetch --unshallow --tags
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Artifacts with Gradle
run: ./gradlew build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: ./build/libs/
- name: Get tag
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
id: tag
uses: dawidd6/action-get-tag@v1
- uses: jungwinter/split@v2
id: split
with:
separator: "+"
msg: ${{steps.tag.outputs.tag}}
- name: "Upload to Distributors"
uses: Kir-Antipov/[email protected]
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
with:
modrinth-id: 1W98a849
modrinth-token: ${{ env.MODRINTH_TOKEN }}
curseforge-id: 535291
curseforge-token: ${{ env.CURSEFORGE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
name: "[Universal ${{steps.split.outputs._1}}] MCA Reborn - ${{steps.split.outputs._0}}"
changelog-file: changelog.md
version-type: release
files: build/libs/*-@(universal).jar
loaders: |
fabric
forge
quilt
game-versions: |
${{steps.split.outputs._1}}
java: |
Java 17
dependencies: |
architectury-api | depends | *
fabric-api | recommends | *
qsl | recommends | *
retry-attempts: 2
retry-delay: 10000
fail-mode: skip