ci: Writing a correct script for generation of the zipped addon.

This commit is contained in:
yannk 2023-03-08 19:35:51 +01:00
parent 6e023508d7
commit c4a7838424

View file

@ -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'