]> BookStack Code Mirror - devops/commitdiff
Removed beta from meta scripts
authorDan Brown <redacted>
Tue, 20 Apr 2021 21:47:15 +0000 (22:47 +0100)
committerDan Brown <redacted>
Tue, 20 Apr 2021 21:47:15 +0000 (22:47 +0100)
meta-scripts/bookstack-changelog
meta-scripts/bookstack-new-release-blogpost
meta-scripts/bookstack-release-steps

index f59423436d99d7d08c05b3088582790c90853b2a..b4c318c8a9f61fb7bd22b63104d782d49b7743c9 100755 (executable)
@@ -55,13 +55,13 @@ $splitVersion = explode('.', $version);
 $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");
index a696e01ed269548ac5ec6e62fe4c0ee310fbe8d9..cc7f0bf0e63b81226d774b5d4e0d35f5e5e3216c 100644 (file)
@@ -13,7 +13,7 @@ if (!$key) {
 
 $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);
@@ -24,7 +24,7 @@ file_put_contents($imageOutPath, $imageContent);
 
 // 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);
@@ -53,7 +53,7 @@ title = "Beta Release $version"
 date = $date
 author = "Dan Brown"
 image = "/images/blog-cover-images/$imageOutName"
-slug = "beta-release-$hyphenVersion"
+slug = "bookstack-release-$hyphenVersion"
 draft = false
 +++
 
index 6f1afc30742c6008b30b45da4b46f96b3eb2af9f..e42e9cfb1e79045f127037401b2fb469ca0a4ea9 100755 (executable)
@@ -1,6 +1,6 @@
 #!/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 ""
@@ -23,6 +23,6 @@ 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