-
Notifications
You must be signed in to change notification settings - Fork 27
60 lines (59 loc) · 1.51 KB
/
common.yml
File metadata and controls
60 lines (59 loc) · 1.51 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
name: Common
on:
workflow_call:
inputs:
type:
required: true
type: string
is-snapshot:
required: false
type: boolean
default: true
change-log:
required: false
type: string
jobs:
build-common:
name: Build Common
runs-on: ubuntu-latest
environment: Build
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '21'
cache: 'gradle'
-
name: Build
env:
IS_SNAPSHOT: ${{ inputs.is-snapshot }}
run: |
./gradlew clean shadowJar --info --stacktrace
-
name: Publish Modrinth
if: ${{ !inputs.is-snapshot }}
env:
IS_SNAPSHOT: ${{ inputs.is-snapshot }}
CHANGE_LOG: ${{ inputs.change-log }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: |
./gradlew modrinth modrinthSyncBody --info --stacktrace
-
name: Publish CurseForge
if: ${{ !inputs.is-snapshot }}
env:
IS_SNAPSHOT: ${{ inputs.is-snapshot }}
CHANGE_LOG: ${{ inputs.change-log }}
CURSE_TOKEN: ${{ secrets.CURSE_TOKEN }}
run: |
./gradlew curseforge --info --stacktrace
-
uses: actions/upload-artifact@v4
with:
name: I18nUpdateMod-${{ inputs.type }}-${{ github.run_number }}
path: build/libs