Fix publish recipe (#59)

Sed command didn't deal with variable amounts of whitespace.
This commit is contained in:
Casey Rodarmor 2016-11-11 19:23:46 -08:00 committed by GitHub
parent 510a269d00
commit 716b4eba19

View file

@ -17,18 +17,18 @@ build:
check:
cargo check
version = `sed -En 's/version = "([^"]+)"/\1/p' Cargo.toml`
version = `sed -En 's/version[[:space:]]*=[[:space:]]*"([^"]+)"/v\1/p' Cargo.toml`
publish: clippy build
git branch | grep '* master'
git diff --no-ext-diff --quiet --exit-code
git co -b v{{version}}
git co -b {{version}}
git push github
cargo publish
git tag -a "v{{version}}" -m "v{{version}}"
git tag -a {{version}} -m {{version}}
git push github --tags
git push origin --tags
@echo 'Remember to merge the v{{version}} branch on GitHub!'
@echo 'Remember to merge the {{version}} branch on GitHub!'
done BRANCH:
git checkout {{BRANCH}}