46 lines
735 B
YAML
46 lines
735 B
YAML
stages:
|
|
- build
|
|
- optimize
|
|
- package
|
|
|
|
variables:
|
|
EXPORT_DIR: "rpg16"
|
|
|
|
before_script:
|
|
- apt-get -qq update && apt-get -qq install -y graphicsmagick rsync optipng
|
|
|
|
build-textures:
|
|
stage: build
|
|
script:
|
|
- "./export.sh"
|
|
|
|
artifacts:
|
|
paths:
|
|
- "rpg16/"
|
|
|
|
optimize:
|
|
stage: optimize
|
|
only:
|
|
- tags
|
|
script:
|
|
- "find ${EXPORT_DIR} -name '*.png' | xargs optipng -o5 -fix"
|
|
|
|
artifacts:
|
|
paths:
|
|
- "rpg16/"
|
|
dependencies:
|
|
- build-textures
|
|
|
|
stamp:
|
|
stage: package
|
|
only:
|
|
- tags
|
|
script:
|
|
- "./stamp.sh ${CI_COMMIT_TAG}"
|
|
|
|
artifacts:
|
|
paths:
|
|
- "rpg16/"
|
|
dependencies:
|
|
- optimize
|