diff --git a/.ci/build.sh b/.ci/build.sh index b6af53af70..22b6f81d92 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -73,6 +73,7 @@ function build() { pmd_ci_log_group_start "Publishing Release" pmd_ci_gh_releases_publishRelease "$GH_RELEASE" pmd_ci_sourceforge_selectDefault "${PMD_CI_MAVEN_PROJECT_VERSION}" + pmd_ci_sourceforge_publishBlogPost "$SF_BLOG_URL" pmd_ci_log_group_end fi @@ -206,9 +207,18 @@ function pmd_ci_build_and_upload_doc() { rendered_release_notes=$(bundle exec docs/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) local release_name release_name="PMD ${PMD_CI_MAVEN_PROJECT_VERSION} ($(date -u +%d-%B-%Y))" - pmd_ci_gh_releases_updateRelease "$GH_RELEASE" "$release_name" "$rendered_release_notes" + pmd_ci_gh_releases_updateRelease "$GH_RELEASE" "$release_name" "${rendered_release_notes}" pmd_ci_sourceforge_uploadReleaseNotes "${PMD_CI_MAVEN_PROJECT_VERSION}" "${rendered_release_notes}" + local rendered_release_notes_with_links + rendered_release_notes_with_links=" +* Downloads: https://github.com/pmd/pmd/releases/tag/pmd_releases%2F${PMD_CI_MAVEN_PROJECT_VERSION} +* Documentation: https://pmd.github.io/pmd-${PMD_CI_MAVEN_PROJECT_VERSION}/ + +${rendered_release_notes}" + pmd_ci_sourceforge_createDraftBlogPost "${release_name} released" "${rendered_release_notes_with_links}" "pmd,release" + SF_BLOG_URL="${RESULT}" + # updates https://pmd.github.io/latest/ and https://pmd.github.io/pmd-${PMD_CI_MAVEN_PROJECT_VERSION} publish_release_documentation_github pmd_ci_sourceforge_rsyncSnapshotDocumentation "${PMD_CI_MAVEN_PROJECT_VERSION}" "pmd-${PMD_CI_MAVEN_PROJECT_VERSION}" diff --git a/do-release.sh b/do-release.sh index a191f84799..12bd13fb81 100755 --- a/do-release.sh +++ b/do-release.sh @@ -226,20 +226,16 @@ echo echo echo echo "Verify the new release on github: " +echo "and the news entry at " echo echo "* Wait until the new version is synced to maven central and appears as latest version in" echo " ." -echo "* Submit news to SF on page. Use same text as in the email below." echo "* Send out an announcement mail to the mailing list:" echo echo "To: PMD Developers List " -echo "Subject: [ANNOUNCE] PMD ${RELEASE_VERSION} Released" -echo -echo "* Downloads: https://github.com/pmd/pmd/releases/tag/pmd_releases%2F${RELEASE_VERSION}" -echo "* Documentation: https://pmd.github.io/pmd-${RELEASE_VERSION}/" -echo -echo "$NEW_RELEASE_NOTES" +echo "Subject: [ANNOUNCE] PMD ${RELEASE_VERSION} released" echo +echo " You can copy the same text from ." echo echo tweet="PMD ${RELEASE_VERSION} released: https://github.com/pmd/pmd/releases/tag/pmd_releases/${RELEASE_VERSION} #PMD"