Create a unique branch when bumping version (#20)

This commit is contained in:
Casey Rodarmor 2016-11-05 01:51:56 -07:00 committed by GitHub
parent 9a742e6336
commit 6861a346c3

View File

@ -22,12 +22,13 @@ publish: clippy build
git branch | grep '* master' git branch | grep '* master'
git diff --no-ext-diff --quiet --exit-code git diff --no-ext-diff --quiet --exit-code
grep 'version("{{version}}")' src/app.rs grep 'version("{{version}}")' src/app.rs
git push github master:master git co -b v{{version}}
git push origin master:master git push github
cargo publish cargo publish
git tag -a "v{{version}}" -m "v{{version}}" git tag -a "v{{version}}" -m "v{{version}}"
git push github --tags git push github --tags
git push origin --tags git push origin --tags
@echo 'Remember to merge v{{version}} branch on GitHub!'
clippy: clippy:
rustup run nightly cargo clippy rustup run nightly cargo clippy