forked from phoedos/pmd
release-script: create correct release notes post for pmd.github.io
The yaml frontmatter was missing.
This commit is contained in:
parent
6339cd42d4
commit
50b2368335
@ -85,7 +85,13 @@ RELEASE_RULESET="pmd-core/src/main/resources/rulesets/releases/${RELEASE_VERSION
|
||||
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}
|
||||
cat > ../pmd.github.io/${RELEASE_NOTES_POST} <<EOF
|
||||
---
|
||||
layout: post
|
||||
title: PMD ${RELEASE_VERSION} released
|
||||
---
|
||||
${NEW_RELEASE_NOTES}
|
||||
EOF
|
||||
|
||||
echo "Committing current changes (pmd)"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user