From 65d7f6d363386ce26393cdd78797fdfa06ddffee Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Wed, 30 Oct 2024 15:17:43 +0000 Subject: [PATCH] build: switch to tag-based releases --- .github/workflows/release.yml | 7 +++++-- build.gradle | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d42e34b..7b185c65 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 f473b0cc..f52fc6b4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,8 @@ plugins { id "me.modmuss50.mod-publish-plugin" version "0.5.1" } +apply from: 'https://raw.githubusercontent.com/FTBTeam/mods-meta/main/gradle/changelog.gradle' + architectury { minecraft = rootProject.minecraft_version } @@ -102,7 +104,7 @@ allprojects { publishMods { dryRun = providers.environmentVariable("CURSEFORGE_KEY").getOrNull() == null - changelog = providers.environmentVariable("CHANGELOG").getOrElse("No changelog provided") + changelog = createChangelog(project) version = "${mod_version}" // TODO: Migrate to something else