]> BookStack Code Mirror - devops/blob - meta-scripts/bookstack-release-steps
Merge branch 'main' of codeberg.org:bookstack/devops
[devops] / meta-scripts / bookstack-release-steps
1 #!/bin/bash
2
3 echo "Enter the full version (eg. v24.03 or v24.12.3) and press [ENTER]:"
4 read version
5 hyphen_version="${version//./-}"
6 blogpost_url="https://www.bookstackapp.com/blog/bookstack-release-${hyphen_version}/"
7
8 echo ""
9
10 echo -e "\e[1m\e[94m== Database changes? ==\e[0m"
11 echo "✔ Run full DB testing - https://github.com/BookStackApp/BookStack/tree/development/dev/docker/db-testing"
12
13 echo -e "\e[1m\e[94m== Translator & dependency attribution update ==\e[0m"
14 echo "bookstack-update-translators"
15 echo "composer run build-licenses"
16 echo "git commit -a -m \"Updated translator & dependency attribution before release ${version}\""
17 echo ""
18
19 echo -e "\e[1m\e[94m== Merge codebase from development ==\e[0m"
20 echo "git checkout release"
21 echo "git merge development"
22 echo ""
23
24 echo -e "\e[1m\e[94m== Builds deps, vendor files, and increment version ==\e[0m"
25 echo "npm run production"
26 echo "echo \"${version}\" > version"
27 echo "bookstack-store-vendor"
28 echo "git commit -a -m \"Updated version and assets for release ${version}\""
29 echo ""
30
31 echo -e "\e[1m\e[94m== Tag release and push it to GitHub ==\e[0m"
32 echo "git tag -a ${version} -m \"Release ${version}\" -s"
33 echo "git push origin release"
34 echo "git push origin ${version}"
35 echo ""
36
37 echo -e "\e[1m\e[94m== Post deployment checklist ==\e[0m"
38 echo "✔ Create GitHub release - https://github.com/BookStackApp/BookStack/releases/new?tag=${version}&title=BookStack+${version}"
39 echo "✔ Deploy site blogpost/changes"
40 echo "✔ Publish YouTube/Peertube videos"
41 echo "✔ Share in Discord"
42 echo "✔ Post on Mastodon - https://fosstodon.org/share?url=${blogpost_url}"
43 echo "✔ Post on Subreddit - http://www.reddit.com/r/BookStack/submit?url=${blogpost_url}"
44 echo "✔ Update demo instance"
45 echo ""
46 echo -e "\e[1m\e[93m🔒 Security release?\e[0m"
47 echo "✔ Send out security email - https://updates.bookstackapp.com/"
48 echo "✔ Add notice to updates page"