Skip to content

Commit

Permalink
HOT-FIX: conserta changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardoliveira committed Jun 29, 2023
1 parent 9f56143 commit 3f14fec
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
networks:
- sapl-net
sapl:
image: interlegis/sapl:3.1.163-RC13
image: interlegis/sapl:3.1.163-RC14
# build:
# context: ../
# dockerfile: ./docker/Dockerfile
Expand Down
13 changes: 9 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ green_color='\033[0;32m'
red_color='\033[0;31m'
reset_color='\033[0m'

LATEST_VERSION=$(git tag | egrep $VERSION_PATTERN | sort --version-sort | tail -1)
LATEST_VERSION=$(git tag | egrep $VERSION_PATTERN | sort --version-sort -r | head -1)
MAJOR_VERSION=$(echo $LATEST_VERSION | cut -d"-" -f1)
MAJOR_TAG_CREATED=$(git tag | egrep $MAJOR_VERSION"$")

Expand Down Expand Up @@ -51,6 +51,7 @@ function change_files {
sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/templates/base.html

sed -E -i "" "s|$OLD_VERSION|$FINAL_VERSION|g" sapl/settings.py

}

function set_major_version {
Expand Down Expand Up @@ -91,8 +92,12 @@ prompt_yes_no() {

function commit_and_push {
echo -e "${green_color}Committing new release $FINAL_VERSION...${color_reset}"
git changelog --tag $FINAL_VERSION -x >> CHANGES.md
git add docker/docker-compose.yaml setup.py sapl/settings.py sapl/templates/base.html CHANGES.md
git add docker/docker-compose.yaml setup.py sapl/settings.py sapl/templates/base.html
git changelog --tag $FINAL_VERSION --prune-old -x > latest_changes.tmp
cat /tmp/latest_changes.md CHANGES.md > CHANGES.tmp
mv CHANGES.tmp CHANGES.md
git add CHANGES.md
rm latest_changes.tmp

if prompt_yes_no "${green_color}Do you want to commit SAPL $FINAL_VERSION release locally?${reset_color}"; then
git commit -m "Release: $FINAL_VERSION"
Expand Down Expand Up @@ -144,7 +149,7 @@ case "$1" in
exit 0
;;
--top)
git tag | sort --version-sort | tail "-$2"
git tag | sort --version-sort -r | head "-$2"
exit 0
;;

Expand Down
2 changes: 1 addition & 1 deletion sapl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/login/?next='

SAPL_VERSION = '3.1.163-RC13'
SAPL_VERSION = '3.1.163-RC14'

if DEBUG:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
Expand Down
2 changes: 1 addition & 1 deletion sapl/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ <h1 class="page-header">
<small>
Desenvolvido pelo <a href="http://www.interlegis.leg.br/">Interlegis</a> em software livre e aberto.
</small>
<span>Release: 3.1.163-RC13</span>
<span>Release: 3.1.163-RC14</span>
</p>

</div>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
]
setup(
name='interlegis-sapl',
version='3.1.163-RC13',
version='3.1.163-RC14',
packages=find_packages(),
include_package_data=True,
license='GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007',
Expand Down

0 comments on commit 3f14fec

Please sign in to comment.