From f1bff237a4f539d8197cc7f6e4cb72410779417a Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Fri, 14 May 2021 11:41:00 +0100 Subject: feat(build): incorporate git committing and tagging into the publish process --- Makefile.toml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Makefile.toml') 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" -- cgit v1.2.3