Skip to content

Commit

Permalink
chore: move to tag-based releases
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Nov 21, 2024
1 parent 3816a7e commit e8d9bcb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Java CI - Build Release

on:
release:
types: [ published ]
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-[a-z]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-[a-z]+\.[0-9]+'

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id "dev.architectury.loom" version "1.2-SNAPSHOT" apply false
}

apply from: 'https://raw.githubusercontent.com/FTBTeam/mods-meta/main/gradle/changelog.gradle'

architectury {
minecraft = rootProject.minecraft_version
}
Expand All @@ -24,7 +26,6 @@ allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
apply from: "https://raw.githubusercontent.com/FTBTeam/mods-meta/main/gradle/git-md-changelog.gradle"

version = project.mod_version
group = project.maven_group
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (ENV.CURSEFORGE_KEY) {
optionalDependency 'jei'
optionalDependency 'roughly-enough-items'
}
changelog = ENV.CHANGELOG // expected to exist if ENV.CURSEFORGE does
changelog = createChangelog(project)
changelogType = 'markdown'
}
}
Expand Down
2 changes: 1 addition & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if (ENV.CURSEFORGE_KEY) {
optionalDependency 'jei'
optionalDependency 'roughly-enough-items'
}
changelog = ENV.CHANGELOG // expected to exist if ENV.CURSEFORGE does
changelog = createChangelog(project)
changelogType = 'markdown'
}
}
Expand Down

0 comments on commit e8d9bcb

Please sign in to comment.