Add changelog generation

This commit is contained in:
modmuss50 2021-07-20 19:59:04 +01:00
parent 08e504a607
commit 1e895f1786
3 changed files with 11 additions and 3 deletions

View file

@ -14,6 +14,13 @@ jobs:
options: --user root
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: FabricMC/fabric-action-scripts@v1
id: changelog
with:
context: changelog
workflow_id: release.yml
- uses: gradle/wrapper-validation-action@v1
- name: Generate build number
@ -32,6 +39,7 @@ jobs:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GH_API_KEY }}
CROWDIN_KEY: ${{ secrets.CROWDIN_KEY }}
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
- name: Upload artifacts
uses: actions/upload-artifact@v2

View file

@ -14,7 +14,7 @@ curseforge {
project {
id = "237903"
changelog = "A changelog can be found at https://github.com/TechReborn/TechReborn"
changelog = ENV.CHANGELOG
releaseType = ENV.RELEASE_CHANNEL ?: "release"
addGameVersion "1.17.1"
addGameVersion "Fabric"

View file

@ -253,7 +253,7 @@ curseforge {
project {
id = "233564"
changelog = "A changelog can be found at https://github.com/TechReborn/TechReborn"
changelog = ENV.CHANGELOG
releaseType = ENV.RELEASE_CHANNEL ?: "release"
addGameVersion "1.17.1" // Also update in RebornCore/build.gradle
addGameVersion "Fabric"
@ -297,7 +297,7 @@ task github(dependsOn: remapJar) {
def releaseBuilder = new GHReleaseBuilder(repository, version as String)
releaseBuilder.name("${archivesBaseName}-${version}")
releaseBuilder.body("A changelog can be found at https://github.com/TechReborn/TechReborn")
releaseBuilder.body(ENV.CHANGELOG)
releaseBuilder.commitish(getBranch())
def ghRelease = releaseBuilder.create()