diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f875fc0..47025343 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/build.gradle b/build.gradle index d679798a..2abfa697 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } @@ -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 diff --git a/fabric/build.gradle b/fabric/build.gradle index e039e38a..13ad852f 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -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' } } diff --git a/forge/build.gradle b/forge/build.gradle index 54b45fbf..3ad455a4 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -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' } }