Skip to content

Commit e54cb21

Browse files
authored
fix: missing changelog when building package (#61)
* fix: missing changelog when building package * fix: changelog is not present to git
1 parent 98d3a9e commit e54cb21

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/publish.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ sed -i '/<!-- no toc -->/,/<!-- no toc -->/d' README.md
4040

4141
poetry build
4242

43-
# Restore the README abd CHANGELOG if git is installed
44-
if command -v git &> /dev/null
45-
then
46-
git checkout -- README.md
47-
git checkout -- CHANGELOG.md
48-
fi
49-
5043
if [ "$DRY_RUN" = true ]; then
5144
poetry publish -r testpypi
5245
else
5346
poetry publish
5447
fi
5548

49+
# Restore the README if git is installed
50+
# This is for convenience when developing
51+
if command -v git &> /dev/null
52+
then
53+
git checkout -- README.md
54+
fi
55+
5656
popd >> /dev/null

0 commit comments

Comments
 (0)