From 7f876f5d601a2972d97f2a11c98c4d07db731878 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sun, 30 Sep 2018 11:05:18 +0200 Subject: [PATCH] Generate release notes after docs/_config.yml has been updated --- do-release.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/do-release.sh b/do-release.sh index 38aab524e3..06b1320603 100755 --- a/do-release.sh +++ b/do-release.sh @@ -67,15 +67,6 @@ export DEVELOPMENT_VERSION export CURRENT_BRANCH -# install bundles needed for rendering release notes -bundle install --with=release_notes_preprocessing --path vendor/bundle - -RELEASE_RULESET="pmd-core/src/main/resources/rulesets/releases/${RELEASE_VERSION//\./}.xml" -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 .travis/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) -echo "${NEW_RELEASE_NOTES}" > ../pmd.github.io/${RELEASE_NOTES_POST} - echo "* Update date info in **docs/_config.yml**." echo " date: $(date -u +%d-%B-%Y)" echo @@ -86,6 +77,16 @@ echo "* Update **../pmd.github.io/_config.yml** to mention the new release" echo echo "Press enter to continue..." read + +# install bundles needed for rendering release notes +bundle install --with=release_notes_preprocessing --path vendor/bundle + +RELEASE_RULESET="pmd-core/src/main/resources/rulesets/releases/${RELEASE_VERSION//\./}.xml" +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 .travis/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) +echo "${NEW_RELEASE_NOTES}" > ../pmd.github.io/${RELEASE_NOTES_POST} + echo "Committing current changes (pmd)" if [[ -e ${RELEASE_RULESET} ]]