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