diff --git a/Cargo.lock b/Cargo.lock index 7ee272f9..a333d736 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "just" -version = "0.2.13" +version = "0.2.14" dependencies = [ "brev 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.16.4 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 385463ce..cb2eee90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "just" -version = "0.2.13" +version = "0.2.14" authors = ["Casey Rodarmor "] license = "WTFPL/MIT/Apache-2.0" description = "🤖 Just a command runner" diff --git a/justfile b/justfile index b31cb9f6..4c66a175 100644 --- a/justfile +++ b/justfile @@ -13,12 +13,18 @@ build: check: cargo check +version = `sed -En 's/version = "([^"]+)"/\1/p' Cargo.toml` + publish: clippy build - # make sure version is up to date + git branch | grep '* master' git diff --no-ext-diff --quiet --exit-code - grep 'version("'`sed -En 's/version = "([^"]+)"/\1/p' Cargo.toml`'")' src/app.rs - git push github master:master + grep 'version("{{version}}")' src/app.rs cargo publish + git tag -a "v{{version}}" -m "v{{version}}" + git push github --tags + git push github master:master + git push origin --tags + git push origin master:master clippy: rustup run nightly cargo clippy diff --git a/src/app.rs b/src/app.rs index df959657..1309a4d6 100644 --- a/src/app.rs +++ b/src/app.rs @@ -23,7 +23,7 @@ macro_rules! die { pub fn app() { let matches = App::new("just") - .version("0.2.13") + .version("0.2.14") .author("Casey Rodarmor ") .about("Just a command runner - https://github.com/casey/just") .arg(Arg::with_name("list")