From c4a7838424fdfb121deb98444a93e601da32f0f6 Mon Sep 17 00:00:00 2001 From: yannk Date: Wed, 8 Mar 2023 19:35:51 +0100 Subject: [PATCH] ci: Writing a correct script for generation of the zipped addon. --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d035118..e2c4839 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,6 @@ # This CI is for zipping the plugin when ready for distribution +variables: + ADDON_VERSION: "1.0.0" stages: - build @@ -13,7 +15,7 @@ build-job: - apk add --update zip script: - echo "Zipping the plugin..." - - for d in */ ; do cd $d; zip -r ../${d%/}.zip *; cd .. + - zip -9 -r -q khanat_tools_v'$ADDON_VERSION'.zip * artifacts: paths: - - '*.zip' \ No newline at end of file + - '*.zip'