[ci] Move render_release_notes.rb to docs

This commit is contained in:
Andreas Dangel 2021-04-15 18:19:47 +02:00
parent c384bb8732
commit b896aacabf
5 changed files with 5 additions and 3 deletions

View File

@ -203,7 +203,7 @@ function pmd_ci_build_and_upload_doc() {
bundle install bundle install
# renders, and skips the first 6 lines - the Jekyll front-matter # renders, and skips the first 6 lines - the Jekyll front-matter
local rendered_release_notes 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 local release_name
release_name="PMD ${PMD_CI_MAVEN_PROJECT_VERSION} ($(date -u +%d-%B-%Y))" 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"

View File

@ -6,7 +6,7 @@ source 'https://rubygems.org/'
gem 'pmdtester', '~> 1' gem 'pmdtester', '~> 1'
gem 'danger', '~> 5.6', '>= 5.6' 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) # this happens during release (.ci/build.sh and do-release.sh)
# but also during regular builds (.ci/build.sh) # but also during regular builds (.ci/build.sh)
group :release_notes_preprocessing do group :release_notes_preprocessing do

View File

@ -127,7 +127,7 @@ bundle install
export RELEASE_NOTES_POST="_posts/$(date -u +%Y-%m-%d)-PMD-${RELEASE_VERSION}.md" export RELEASE_NOTES_POST="_posts/$(date -u +%Y-%m-%d)-PMD-${RELEASE_VERSION}.md"
echo "Generating ../pmd.github.io/${RELEASE_NOTES_POST}..." 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} <<EOF cat > ../pmd.github.io/${RELEASE_NOTES_POST} <<EOF
--- ---
layout: post layout: post

View File

@ -45,6 +45,8 @@ exclude:
- pdf-*.sh - pdf-*.sh
- pdfconfigs/ - pdfconfigs/
- pdf/ - pdf/
- sitemap_generator.sh
- render_release_notes.rb
feedback_subject_line: PMD Source Code Analyzer feedback_subject_line: PMD Source Code Analyzer