Skip to content

Commit e64ed83

Browse files
committed
feat: update documentation in release scripts
1 parent 9a4aa45 commit e64ed83

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

scripts/update_tags_and_docs.sh

+20-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@ echo "Tag name: ${BOOKSTACK_VERSION}"
2525
git tag -s -a "${BOOKSTACK_VERSION}" -m "Release version ${BOOKSTACK_VERSION}"
2626
git push --tags
2727

28-
# TODO: Sort VERSION file
29-
# TODO: Update README version
30-
# TODO: Update docker-compose
28+
echo "Extracting old version info.."
29+
OLD_BS_VERSION="$(cat VERSION)"
30+
31+
echo "Updating README and reference docker-compose.yml.."
32+
sed \
33+
-i '' \
34+
-e "s/${OLD_BS_VERSION}/${BOOKSTACK_VERSION}/g" \
35+
"${GIT_ROOT}/README.md" \
36+
"${GIT_ROOT}/docker-compose.yml"
37+
38+
echo "Updating VERSION file.."
39+
echo "${BOOKSTACK_VERSION}" > "${GIT_ROOT}/VERSION"
40+
41+
git add \
42+
"${GIT_ROOT}/README.md" \
43+
"${GIT_ROOT}/docker-compose.yml" \
44+
"${GIT_ROOT}/VERSION"
45+
46+
git commit -S -m "doc: update documentation to reference ${BOOKSTACK_VERSION}"
47+
git push

0 commit comments

Comments
 (0)