File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,22 @@ echo "Tag name: ${BOOKSTACK_VERSION}"
2525git tag -s -a " ${BOOKSTACK_VERSION} " -m " Release version ${BOOKSTACK_VERSION} "
2626git 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} "
You can’t perform that action at this time.
0 commit comments