Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed Oct 9, 2023
1 parent 9a019fa commit 8606083
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if [[ -n $(git status -s) ]]; then
exit 1;
fi

SB_VERSION="v$(python3 -c "from shallow_backup.constants import ProjInfo; print(ProjInfo.VERSION)")"
SB_VERSION_NO_V="$(python3 -c "from shallow_backup.constants import ProjInfo; print(ProjInfo.VERSION)")"
SB_VERSION="v$SB_VERSION_NO_V"

read -r -p "Release shallow-backup $SB_VERSION? Version bump should already be committed and pushed. [y/N] " response
case "$response" in
Expand All @@ -43,6 +43,9 @@ git add CHANGELOG.md && git commit -m "Add CHANGELOG for $SB_VERSION" && git pus
echo "Generating distribution files..."
rm -rf dist/* && python3 setup.py sdist
echo "Creating GH release..."
set +x
echo "$SB_VERSION"
gh release create "shallow-backup $SB_VERSION" "dist/shallow-backup-$SB_VERSION_NO_V.tar.gz" --notes "shallow-backup $SB_VERSION"
set -x
echo "Uploading to pypi..."
twine upload --repository pypi dist/*

0 comments on commit 8606083

Please sign in to comment.