From f9abb728870e2669ca0fbdd162a059857501de15 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 2 Nov 2016 00:18:09 -0700 Subject: [PATCH] New publish recipe, bump version to 0.2.14 to test. --- Cargo.lock | 2 +- Cargo.toml | 2 +- justfile | 12 +++++++++--- src/app.rs | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7ee272f..a333d73 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 385463c..cb2eee9 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 b31cb9f..4c66a17 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 df95965..1309a4d 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")