release info - nightly prerelease is marked prerelease

This commit is contained in:
Jindra Petřík
2018-01-18 06:26:53 +01:00
parent 0c988bb7ae
commit 4c9380257a
2 changed files with 14 additions and 2 deletions

View File

@@ -157,6 +157,13 @@ $ICONS_URL = "https://github.com/jindrapetrik/jpexs-decompiler/wiki/images";
$body = "";
$is_prerelease = $changelog_section === "Unreleased";
if($is_prerelease) {
$body .= "## Prerelease WARNING\n".
"**This is prerelease nightly version. It should *NOT* be considered as stable.**\n\n";
}
$body .= "## Downloads:\n".
"\n".
"| Name | File | OS |\n".
@@ -225,7 +232,12 @@ if($changelog_data === false)
}
$body .= "\n";
$body .= "## What's new:\n";
if($is_prerelease)
{
$body .= "## What's new since last stable version:\n";
}else{
$body .= "## What's new:\n";
}
$body .= $changelog_data;
$body .= "\n";
foreach($footer_links as $title=>$link)

View File

@@ -97,7 +97,7 @@ else
export DEPLOY_FILEVER_TAG="${VERSION_NUMBER}_nightly${NEXT_NIGHTLY_VER}"
export DEPLOY_RELEASE_TO_REMOVE=$LAST_NIGHTLY_TAG
export DEPLOY_TAG_NAME=$NEXT_NIGHTLY_TAG
export DEPLOY_VERSION_NAME="version $LAST_STABLE_VER nightly $NEXT_NIGHTLY_VER"
export DEPLOY_VERSION_NAME="(PREVIEW) version $LAST_STABLE_VER nightly $NEXT_NIGHTLY_VER"
export DEPLOY_DESCRIPTION=`php ./travis/format_release_info.php -filever $DEPLOY_FILEVER_TAG Unreleased $DEPLOY_TAG_NAME ./CHANGELOG.md "$TRAVIS_REPO_SLUG"`
export DEPLOY_COMMITISH="dev"
export DEPLOY_PRERELEASE=true