Skip to content

Commit

Permalink
Stash and restore working directory changes in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Jun 13, 2016
1 parent 5d7165c commit b4cfbdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# stash anything not committed to git
git stash save --include-untracked "Stash before release"

# remove old distributions (if any)
rm dist/*

Expand All @@ -19,3 +22,6 @@ python3 setup.py bdist_wheel
# upload distributions

twine upload dist/*

# reapply stashed changes from git
git stash pop

0 comments on commit b4cfbdb

Please sign in to comment.