Files
wfrp4-actor-sheet-print/.gitlab-ci.yml
Matthieu CAILLEAUX fc22abfa54 chore: test expose as
2021-11-15 16:11:23 +01:00

36 lines
662 B
YAML

image: node:14.15.5-stretch-slim
variables:
GIT_DEPTH: 0
GIT_STRATEGY: fetch
stages:
- build
build:
stage: build
before_script:
- apt update
- apt 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
expose_as: "$CI_COMMIT_BRANCH"
paths:
- dist/wfrp4e-actor-sheet-print.zip
expire_in: never
only:
- tags
- master