mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
autocommit docs during release
This commit is contained in:
parent
09b624f120
commit
26022fc9fb
2 changed files with 5 additions and 3 deletions
|
@ -37,12 +37,14 @@ cd "$DIR"
|
|||
if [ -z "$(git status --porcelain)" ] && [[ "$(git branch --show-current)" == "master" ]]; then
|
||||
git pull
|
||||
else
|
||||
echo "[X] Commit your changes and make sure git is checked out on clean master."
|
||||
exit 4
|
||||
echo "[!] Warning: git status is dirty!"
|
||||
echo " Press Ctrl-C to cancel, or wait 10sec to continue..."
|
||||
sleep 10
|
||||
fi
|
||||
|
||||
echo "[*] Bumping VERSION from $OLD_VERSION to $NEW_VERSION"
|
||||
echo "$NEW_VERSION" > "$VERSION_FILE"
|
||||
git add "$DIR/docs"
|
||||
git add "$VERSION_FILE"
|
||||
git commit -m "$NEW_VERSION release"
|
||||
git tag -a "v$NEW_VERSION" -m "v$NEW_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue