Skip to content

Commit

Permalink
feat: update documentation in release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhenry committed Nov 13, 2024
1 parent 9a4aa45 commit e64ed83
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions scripts/update_tags_and_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ echo "Tag name: ${BOOKSTACK_VERSION}"
git tag -s -a "${BOOKSTACK_VERSION}" -m "Release version ${BOOKSTACK_VERSION}"
git push --tags

# TODO: Sort VERSION file
# TODO: Update README version
# TODO: Update docker-compose
echo "Extracting old version info.."
OLD_BS_VERSION="$(cat VERSION)"

echo "Updating README and reference docker-compose.yml.."
sed \
-i '' \
-e "s/${OLD_BS_VERSION}/${BOOKSTACK_VERSION}/g" \
"${GIT_ROOT}/README.md" \
"${GIT_ROOT}/docker-compose.yml"

echo "Updating VERSION file.."
echo "${BOOKSTACK_VERSION}" > "${GIT_ROOT}/VERSION"

git add \
"${GIT_ROOT}/README.md" \
"${GIT_ROOT}/docker-compose.yml" \
"${GIT_ROOT}/VERSION"

git commit -S -m "doc: update documentation to reference ${BOOKSTACK_VERSION}"
git push

0 comments on commit e64ed83

Please sign in to comment.