diff options
author | a-kenji <aks.kenji@protonmail.com> | 2021-09-21 17:16:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 17:16:41 +0200 |
commit | 8cf93d8e81f8580adf5d508afb9fd8ae4b7bd19d (patch) | |
tree | bfc01d1247dfc7b44e9da34daf09678400b00351 /Makefile.toml | |
parent | 9de73d2920a3eadf42c3fe3553ee946b8f873f3f (diff) |
feature(release): Copy default config to the examples folder on release (#736)
fixes #733
Diffstat (limited to 'Makefile.toml')
-rw-r--r-- | Makefile.toml | 14 |
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"] |