mirror of
https://github.com/gotson/komga.git
synced 2025-01-07 03:07:16 +08:00
ci(jreleaser): add release introduction to the release notes
This commit is contained in:
parent
d51fdeb025
commit
d52ba95a65
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -3,6 +3,10 @@ name: Release
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
release_notes:
|
||||||
|
description: Release notes (use \n for newlines)
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
bump:
|
bump:
|
||||||
description: 'Bump type'
|
description: 'Bump type'
|
||||||
required: false
|
required: false
|
||||||
@ -126,6 +130,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arguments: :komga:generateOpenApiDocs
|
arguments: :komga:generateOpenApiDocs
|
||||||
|
|
||||||
|
- name: Create release notes
|
||||||
|
run: |
|
||||||
|
mkdir release_notes
|
||||||
|
echo -e "${{ inputs.release_notes }}" >> release_notes/release_notes.md
|
||||||
|
echo "Release notes:"
|
||||||
|
cat release_notes/release_notes.md
|
||||||
|
echo ""
|
||||||
|
|
||||||
- name: JReleaser Changelog append
|
- name: JReleaser Changelog append
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
if: needs.version.outputs.should_release #only redo if the version changed
|
if: needs.version.outputs.should_release #only redo if the version changed
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -49,6 +49,7 @@ nbdist/
|
|||||||
/config-dir/
|
/config-dir/
|
||||||
application-oauth2.yml
|
application-oauth2.yml
|
||||||
/benchmark
|
/benchmark
|
||||||
|
/release_notes
|
||||||
|
|
||||||
### Conveyor
|
### Conveyor
|
||||||
output/
|
output/
|
||||||
|
@ -2,6 +2,8 @@ import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
|||||||
import org.jreleaser.model.Active
|
import org.jreleaser.model.Active
|
||||||
import org.jreleaser.model.Distribution.DistributionType.SINGLE_JAR
|
import org.jreleaser.model.Distribution.DistributionType.SINGLE_JAR
|
||||||
import org.jreleaser.model.api.common.Apply
|
import org.jreleaser.model.api.common.Apply
|
||||||
|
import kotlin.io.path.Path
|
||||||
|
import kotlin.io.path.exists
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
run {
|
run {
|
||||||
@ -73,6 +75,13 @@ jreleaser {
|
|||||||
preset = "conventional-commits"
|
preset = "conventional-commits"
|
||||||
skipMergeCommits = true
|
skipMergeCommits = true
|
||||||
links = true
|
links = true
|
||||||
|
content = (if (Path("./release_notes/release_notes.md").exists()) "{{#f_file_read}}{{basedir}}/release_notes/release_notes.md{{/f_file_read}}" else "") +
|
||||||
|
"""
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
{{changelogChanges}}
|
||||||
|
{{changelogContributors}}
|
||||||
|
""".trimIndent()
|
||||||
format = "- {{#commitIsConventional}}{{#conventionalCommitIsBreakingChange}}🚨 {{/conventionalCommitIsBreakingChange}}{{#conventionalCommitScope}}**{{conventionalCommitScope}}**: {{/conventionalCommitScope}}{{conventionalCommitDescription}}{{#conventionalCommitBreakingChangeContent}}: *{{conventionalCommitBreakingChangeContent}}*{{/conventionalCommitBreakingChangeContent}} ({{commitShortHash}}){{/commitIsConventional}}{{^commitIsConventional}}{{commitTitle}} ({{commitShortHash}}){{/commitIsConventional}}{{#commitHasIssues}}, closes{{#commitIssues}} {{issue}}{{/commitIssues}}{{/commitHasIssues}}"
|
format = "- {{#commitIsConventional}}{{#conventionalCommitIsBreakingChange}}🚨 {{/conventionalCommitIsBreakingChange}}{{#conventionalCommitScope}}**{{conventionalCommitScope}}**: {{/conventionalCommitScope}}{{conventionalCommitDescription}}{{#conventionalCommitBreakingChangeContent}}: *{{conventionalCommitBreakingChangeContent}}*{{/conventionalCommitBreakingChangeContent}} ({{commitShortHash}}){{/commitIsConventional}}{{^commitIsConventional}}{{commitTitle}} ({{commitShortHash}}){{/commitIsConventional}}{{#commitHasIssues}}, closes{{#commitIssues}} {{issue}}{{/commitIssues}}{{/commitHasIssues}}"
|
||||||
hide {
|
hide {
|
||||||
uncategorized = true
|
uncategorized = true
|
||||||
|
Loading…
Reference in New Issue
Block a user