From dfec15e3a86ef3e52d74c673f17a9228344bb9a2 Mon Sep 17 00:00:00 2001 From: "Carlos E. Feria Vila" Date: Tue, 12 Apr 2022 22:23:19 +0200 Subject: [PATCH] Enhance JReleaser configuration (#223) --- .github/workflows/snapshots.yml | 2 +- jreleaser.yml | 21 +++++++++++++++++++++ src/jreleaser/templates/article/release.md | 13 +++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 src/jreleaser/templates/article/release.md diff --git a/.github/workflows/snapshots.yml b/.github/workflows/snapshots.yml index 47fca81d..ac566b69 100644 --- a/.github/workflows/snapshots.yml +++ b/.github/workflows/snapshots.yml @@ -14,7 +14,7 @@ jobs: name: Test real padron reducido runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.4.0 + - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: java-version: 11 diff --git a/jreleaser.yml b/jreleaser.yml index c35542f5..987bb3c6 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -63,3 +63,24 @@ announce: active: RELEASE channel: '#notifications' message: '🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}' + mail: + active: RELEASE + mimeType: TEXT + port: 587 + auth: true + host: smtp.gmail.com + username: projectopenubl@gmail.com + from: projectopenubl@gmail.com + to: projectopenubl@googlegroups.com + subject: '{{projectNameCapitalized}} {{projectVersion}} released!' + message: | + Acabamos de lanzar {{projectNameCapitalized}} {{projectVersion}}! + {{changelog}} + article: + active: RELEASE + repository: + owner: project-openubl + name: website + files: + - path: 'release.md' + transform: 'blog/{{#f_now}}YYYY-MM-dd{{/f_now}}/{{projectName}}-{{#f_dash}}{{projectVersion}}{{/f_dash}}-released.md' diff --git a/src/jreleaser/templates/article/release.md b/src/jreleaser/templates/article/release.md new file mode 100644 index 00000000..e1da0fab --- /dev/null +++ b/src/jreleaser/templates/article/release.md @@ -0,0 +1,13 @@ +--- +title: {{projectNameCapitalized}} {{projectEffectiveVersion}} released! +description: {{projectEffectiveVersion}} is the latest release. +date: {{#f_now}}YYYY-MM-dd{{/f_now}} +authors: [carlosthe19916] +tags: [searchpe, release] +--- + +Acabamos de lanzar {{projectNameCapitalized}} {{projectEffectiveVersion}} con un conjunto de nuevas funcionalidades, corrección de errores, y mejor documentación. + +## Full changelog + +Puedes ver {{releaseNotesUrl}}[the full changelog of {{projectEffectiveVersion}} on GitHub].