$isFeature = intval(array_pop($splitVersion)) === 0;
// Output title
-output("# BookStack Beta {$version}\n");
+output("# BookStack {$version}\n");
// Output header text and links
if ($isFeature) {
$urlVersion = implode('0', $splitVersion);
output("- [Update instructions](https://www.bookstackapp.com/docs/admin/updates)");
- output("- [Update details on blog](https://www.bookstackapp.com/blog/beta-release-{$urlVersion}/)");
+ output("- [Update details on blog](https://www.bookstackapp.com/blog/bookstack-release-{$urlVersion}/)");
output("\n### Full List of Changes\n");
} else {
output("\nThis release contains the following fixes and changes:\n");
$unsplashId = read("Enter the unsplash image ID:");
$imageDesc = read("Enter a short one/two word description of the image:");
-$version = read("Enter the BookStack version (eg. v0.31.1):");
+$version = read("Enter the BookStack version (eg. v21.03 or v21.12.3):");
// Fetch and write out image
$image = unsplashGet($unsplashId, $key);
// Write out blogpost
$hyphenVersion = str_replace('.', '-', trim($version));
-$postMdName = "beta-release-{$hyphenVersion}.md";
+$postMdName = "bookstack-release-{$hyphenVersion}.md";
$postMdOutPath = implode(DIRECTORY_SEPARATOR, [$siteDir, "content/blog", $postMdName]);
$postMdContent = getPostMarkdown();
file_put_contents($postMdOutPath, $postMdContent);
date = $date
author = "Dan Brown"
image = "/images/blog-cover-images/$imageOutName"
-slug = "beta-release-$hyphenVersion"
+slug = "bookstack-release-$hyphenVersion"
draft = false
+++
#!/bin/bash
-echo "Enter the full version (v0.25.5) and press [ENTER]:"
+echo "Enter the full version (eg. v21.03 or v21.12.3) and press [ENTER]:"
read version
echo ""
# Tag release and push it to GitHub
-echo "git tag -a ${version} -m \"Beta Release ${version}\" -s"
+echo "git tag -a ${version} -m \"Release ${version}\" -s"
echo "git push origin release"
echo "git push origin ${version}"
\ No newline at end of file