diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0b8f7e5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: python:3-alpine + +before_script: + - apk update + - apk add zip + +stages: + - test + - build + +test: + stage: test + script: + - python -mjson.tool 'module.json' > /dev/null + +build: + stage: build + script: + - zip wfrp4e-unofficial-grimoire.zip -r *.js *.json *.md compendium lang tables -x ".*" + artifacts: + name: wfrp4e-unofficial-grimoire + when: on_success + paths: + - wfrp4e-unofficial-grimoire.zip + when: on_success + only: + - tags + - master diff --git a/module.json b/module.json index 5de3754..27ec678 100644 --- a/module.json +++ b/module.json @@ -28,7 +28,7 @@ ], "languages": [ ], - "manifest": "https://", - "download": "https://", - "url": "" + "manifest": "https://gitlab.com/LeRatierBretonnien/wfrp4e-unofficial-grimoire/raw/master/module.json", + "download": "https://gitlab.com/LeRatierBretonnien/wfrp4e-unofficial-grimoire/-/archive/master/wfrp4e-unofficial-grimoire-master.zip", + "url": "https://gitlab.com/LeRatierBretonnien/wfrp4e-unofficial-grimoire/" }