Skip to content

Commit

Permalink
Update release process
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed May 13, 2020
1 parent 0564668 commit 75e37a5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/bin/bash
# Release script for shallow-backup

# Must be run from project root directory
# NOTE: Must be run from project root directory

# Check if on master
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH" != "master" ]]; then
echo 'Must be on master branch to cut a release!';
exit 1;
fi

# Check if master is dirty
[[ -z $(git status -s) ]] || echo 'Master branch dirty! Aborting.' && exit 1

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)")"

Expand Down

0 comments on commit 75e37a5

Please sign in to comment.