summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-09-21 17:16:41 +0200
committerGitHub <noreply@github.com>2021-09-21 17:16:41 +0200
commit8cf93d8e81f8580adf5d508afb9fd8ae4b7bd19d (patch)
treebfc01d1247dfc7b44e9da34daf09678400b00351 /Makefile.toml
parent9de73d2920a3eadf42c3fe3553ee946b8f873f3f (diff)
feature(release): Copy default config to the examples folder on release (#736)
fixes #733
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 7438ceeee..a5bb174e4 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -3,6 +3,8 @@
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
CARGO_TARGET_DIR = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/target"
SKIP_TEST = false
+ZELLIJ_EXAMPLE_DIR = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/example"
+ZELLIJ_ASSETS_DIR = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/zellij-utils/assets"
# Add clippy to the default flow
[tasks.dev-test-flow]
@@ -118,6 +120,16 @@ dependencies = ["install-mandown"]
command = "cargo"
args = ["install", "mandown"]
+
+# copy the example default config from assets directory to a more user facing one
+[tasks.update-default-config]
+workspace = false
+dependencies = []
+script_runner = "@duckscript"
+script = '''
+cp ${ZELLIJ_ASSETS_DIR}/config/default.yaml ${ZELLIJ_EXAMPLE_DIR}/default.yaml
+'''
+
# CI Releasing Zellij
[tasks.ci-build-release]
workspace = false
@@ -193,6 +205,6 @@ cwd = "zellij-tile-utils"
script = "cargo publish && sleep 15"
[tasks.publish-zellij]
-dependencies = ["publish-zellij-client", "publish-zellij-server", "publish-zellij-utils"]
+dependencies = ["publish-zellij-client", "publish-zellij-server", "publish-zellij-utils", "update-default-config"]
command = "cargo"
args = ["publish"]