summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-05-14 11:41:00 +0100
committerBrooks J Rady <b.j.rady@gmail.com>2021-05-14 11:41:00 +0100
commitf1bff237a4f539d8197cc7f6e4cb72410779417a (patch)
treec40fc838237384eebc0fb65471835a7458c8633d /Makefile.toml
parentb835594bf2d87e30829b2f83fe85b4c6d5efa57e (diff)
feat(build): incorporate git committing and tagging into the publish process
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml15
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"