image: node:14.15.5-stretch-slim variables: GIT_DEPTH: 0 GIT_STRATEGY: fetch stages: - build build: stage: build before_script: - apt update - apt get install -y zip script: - npm ci - npm run build - mkdir -p dist/lang - mkdir -p dist/styles - cp lang/* dist/lang/ - cp styles/* dist/styles/ - cp module.json dist - cd dist - zip wfrp4e-actor-sheet-print.zip -r *.* elements lang styles -x ".*" artifacts: name: wfrp4e-actor-sheet-print when: on_success paths: - dist/wfrp4e-actor-sheet-print.zip expire_in: never only: - tags - master