diff options
author | Brooks J Rady <b.j.rady@gmail.com> | 2021-05-14 11:41:00 +0100 |
---|---|---|
committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-05-14 11:41:00 +0100 |
commit | f1bff237a4f539d8197cc7f6e4cb72410779417a (patch) | |
tree | c40fc838237384eebc0fb65471835a7458c8633d /Makefile.toml | |
parent | b835594bf2d87e30829b2f83fe85b4c6d5efa57e (diff) |
feat(build): incorporate git committing and tagging into the publish process
Diffstat (limited to 'Makefile.toml')
-rw-r--r-- | Makefile.toml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.toml b/Makefile.toml index c02ba1ccf..75f78b258 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -122,9 +122,22 @@ args = ["install", "cross"] [tasks.publish] clear = true workspace = false -dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release", "publish-zellij-tile", "publish-zellij-tile-utils"] +dependencies = ["build-plugins-release", "wasm-opt-plugins", "release-commit", "build-release", "publish-zellij-tile", "publish-zellij-tile-utils"] run_task = "publish-zellij" +[tasks.release-commit] +dependencies = ["commit-all", "tag-release"] +command = "git" +args = ["push", "--atomic", "origin", "main", "v${CARGO_MAKE_CRATE_VERSION}"] + +[tasks.commit-all] +command = "git" +args = ["commit", "-aem", "chore(release): v${CARGO_MAKE_CRATE_VERSION}"] + +[tasks.tag-release] +command = "git" +args = ["tag", "v${CARGO_MAKE_CRATE_VERSION}"] + [tasks.publish-zellij-tile] ignore_errors = true cwd = "zellij-tile" |