Skip to content

Commit 722af37

Browse files
committed
Bump version for release.
1 parent 228138d commit 722af37

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

build.gradle

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,27 @@ void minimizePNGFile(File file) {
220220
task buildAndReleaseAll{
221221
dependsOn(':common:buildAndRelease', ':neoforge:buildAndRelease', ':fabric:buildAndRelease')
222222
}
223+
224+
tasks.register("tagVersion") {
225+
dependsOn "publishMods"
226+
227+
doLast {
228+
def tagName = "arch-${minecraft_version}-${mod_version}"
229+
230+
def existing = getExecOutput(["git", "tag", "--list", tagName])
231+
if (existing == tagName) {
232+
println "Tag $tagName already exists. Skipping."
233+
return
234+
}
235+
236+
println "Creating git tag $tagName"
237+
exec {
238+
commandLine "git", "tag", tagName
239+
}
240+
241+
// Optional: push tag
242+
// exec {
243+
// commandLine "git", "push", "origin", tagName
244+
// }
245+
}
246+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ org.gradle.daemon=false
22
org.gradle.jvmargs=-Xmx6500m
33
minecraft_version=1.21
44
mod_id=lootr
5-
mod_version=1.10.35.91
5+
mod_version=1.10.35.92
66
maven_group=noobanidus.mods.lootr
77

88
fabric_loader_version=0.15.11

0 commit comments

Comments
 (0)