Skip to content

Commit 54031b2

Browse files
committed
Update: GitHub Action
1 parent d480ff0 commit 54031b2

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/common.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
required: false
1010
type: boolean
1111
default: true
12+
change-log:
13+
required: false
14+
type: string
1215

1316
jobs:
1417
build-common:
@@ -37,6 +40,7 @@ jobs:
3740
if: ${{ !inputs.is-snapshot }}
3841
env:
3942
IS_SNAPSHOT: ${{ inputs.is-snapshot }}
43+
CHANGE_LOG: ${{ inputs.change-log }}
4044
CURSE_TOKEN: ${{ secrets.CURSE_TOKEN }}
4145
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
4246
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Release
22
on:
3-
push:
4-
tags:
5-
- '*'
3+
release:
4+
types: [published]
65

76
jobs:
87
build-release:
@@ -11,4 +10,5 @@ jobs:
1110
with:
1211
type: Release
1312
is-snapshot: false
13+
change-log: ${{ github.event.release.body }}
1414
secrets: inherit

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ modrinth {
9595
gameVersions.set(supportMinecraftVersions)
9696
loaders.set(listOf("fabric", "forge", "quilt"))
9797
syncBodyFrom.set(rootProject.file("README.md").readText())
98+
changelog.set(System.getenv("CHANGE_LOG"))
9899
}
99100

100101
val curseForgeSpecialVersions = listOf(
@@ -113,5 +114,6 @@ curseforge {
113114
}
114115
gameVersionStrings.addAll(supportMinecraftVersions)
115116
gameVersionStrings.addAll(curseForgeSpecialVersions)
117+
changelog = System.getenv("CHANGE_LOG")
116118
}
117119
}

0 commit comments

Comments
 (0)