add job to CI pipeline to publish UI bundle
authorDan Allen <dan@opendevise.com>
Wed, 3 Jan 2018 00:28:05 +0000 (17:28 -0700)
committerDan Allen <dan@opendevise.com>
Wed, 3 Jan 2018 00:44:22 +0000 (17:44 -0700)
.gitlab-ci.yml

index 16a5c8a..979f0c8 100644 (file)
@@ -19,10 +19,22 @@ lint:
     paths:
     - node_modules/
   script: node_modules/.bin/gulp lint
+bundle:
+  stage: deploy
+  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
+    paths:
+    - build/ui-bundle.zip
 pages:
   stage: deploy
   only:
-  - master
+  - master@antora/antora-ui-default
   cache:
     policy: pull
     paths: