From b896aacabf01ddb3bc9d8fa64643e063c2821145 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 15 Apr 2021 18:19:47 +0200 Subject: [PATCH] [ci] Move render_release_notes.rb to docs --- .ci/build.sh | 2 +- Gemfile | 2 +- do-release.sh | 2 +- docs/_config.yml | 2 ++ {.ci => docs}/render_release_notes.rb | 0 5 files changed, 5 insertions(+), 3 deletions(-) rename {.ci => docs}/render_release_notes.rb (100%) diff --git a/.ci/build.sh b/.ci/build.sh index e97f909715..7a7962befc 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -203,7 +203,7 @@ function pmd_ci_build_and_upload_doc() { bundle install # renders, and skips the first 6 lines - the Jekyll front-matter local rendered_release_notes - rendered_release_notes=$(bundle exec .ci/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) + 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" diff --git a/Gemfile b/Gemfile index 6d66b0fb74..57359b1785 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ source 'https://rubygems.org/' gem 'pmdtester', '~> 1' gem 'danger', '~> 5.6', '>= 5.6' -# This group is only needed for rendering release notes +# This group is only needed for rendering release notes (docs/render_release_notes.rb) # this happens during release (.ci/build.sh and do-release.sh) # but also during regular builds (.ci/build.sh) group :release_notes_preprocessing do diff --git a/do-release.sh b/do-release.sh index bff8d1f6aa..a191f84799 100755 --- a/do-release.sh +++ b/do-release.sh @@ -127,7 +127,7 @@ bundle install export RELEASE_NOTES_POST="_posts/$(date -u +%Y-%m-%d)-PMD-${RELEASE_VERSION}.md" echo "Generating ../pmd.github.io/${RELEASE_NOTES_POST}..." -NEW_RELEASE_NOTES=$(bundle exec .ci/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) +NEW_RELEASE_NOTES=$(bundle exec docs/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) cat > ../pmd.github.io/${RELEASE_NOTES_POST} <