From fcbccbce43fe9059b50d4f81c1b6bfb3e9f43e38 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 4 Dec 2020 17:34:09 +0100 Subject: [PATCH] [ci] Fix do-release.sh script --- .ci/build.sh | 1 + do-release.sh | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index 138f4041de..d6475b70a1 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -187,6 +187,7 @@ function pmd_ci_build_and_upload_doc() { gh_release_updateRelease "$GH_RELEASE" "$release_name" "$rendered_release_notes" sourceforge_uploadReleaseNotes "${VERSION}" "${rendered_release_notes}" + # updates https://pmd.github.io/latest/ and https://pmd.github.io/pmd-${VERSION} publish_release_documentation_github sourceforge_rsyncSnapshotDocumentation "${VERSION}" "pmd-${VERSION}" fi diff --git a/do-release.sh b/do-release.sh index fa8617e1a4..bff8d1f6aa 100755 --- a/do-release.sh +++ b/do-release.sh @@ -24,8 +24,7 @@ echo "-------------------------------------------" echo "Releasing PMD" echo "-------------------------------------------" -# see also https://gist.github.com/pdunnavant/4743895 -CURRENT_VERSION=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:3.0.0:exec) +CURRENT_VERSION=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout) RELEASE_VERSION=${CURRENT_VERSION%-SNAPSHOT} MAJOR=$(echo $RELEASE_VERSION | cut -d . -f 1) MINOR=$(echo $RELEASE_VERSION | cut -d . -f 2) @@ -128,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 .travis/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) +NEW_RELEASE_NOTES=$(bundle exec .ci/render_release_notes.rb docs/pages/release_notes.md | tail -n +6) cat > ../pmd.github.io/${RELEASE_NOTES_POST} <" +echo "Tag has been pushed.... now check github actions: " echo echo echo "Press enter to continue..." @@ -228,7 +227,7 @@ echo echo echo "Verify the new release on github: " echo -echo "* Wait until the new version is synced to maven central and appears in as latest version in" +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:"