2023-03-08 13:02:09 +00:00
|
|
|
# This CI is for zipping the plugin when ready for distribution
|
2023-03-08 18:35:51 +00:00
|
|
|
variables:
|
|
|
|
ADDON_VERSION: "1.0.0"
|
2023-03-08 13:02:09 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
build-job:
|
|
|
|
stage: build
|
2023-03-08 15:41:48 +00:00
|
|
|
tags:
|
|
|
|
- Docker
|
|
|
|
image: alpine
|
|
|
|
before_script:
|
|
|
|
- apk add --update zip
|
2023-03-08 13:02:09 +00:00
|
|
|
script:
|
2023-03-08 19:16:55 +00:00
|
|
|
- echo "Zipping the plugin in its v$ADDON_VERSION…"
|
2023-03-29 10:46:04 +00:00
|
|
|
- rm .gitlab-ci.yml
|
|
|
|
- rm .gitignore
|
2023-03-08 19:39:15 +00:00
|
|
|
- cd .. && zip -9 -r -q khanat_tools_v1.0.0.zip khanat-tools/*
|
2023-03-08 19:35:10 +00:00
|
|
|
- mv khanat_tools_v$ADDON_VERSION.zip khanat-tools
|
2023-03-08 13:02:09 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2023-03-08 19:31:09 +00:00
|
|
|
- khanat_tools_v$ADDON_VERSION.zip
|