paths:
- node_modules/
script: node_modules/.bin/gulp lint
-bundle:
+bundle-stable:
stage: deploy
+ only:
+ - master@antora/antora-ui-default
+ cache:
+ policy: pull
+ paths:
+ - node_modules/
+ script: node_modules/.bin/gulp pack
+ artifacts:
+ paths:
+ - build/ui-bundle.zip
+bundle-dev:
+ stage: deploy
+ except:
+ - master
cache:
policy: pull
paths:
- node_modules/
script: node_modules/.bin/gulp pack
artifacts:
- # automatically expire unless marked as keep from the job page
- expire_in: 1 week
+ # automatically expire unless marked "keep" from job page
+ expire_in: 1 day
paths:
- build/ui-bundle.zip
pages: