From 0d657e4ec5060ea63cdea71f8c55dae0838add29 Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Sun, 7 Oct 2018 11:54:28 +0200
Subject: [PATCH] Docs in gitlab CI

---
 .gitlab-ci.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df71230..f64a230 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,7 +12,6 @@ variables:
 
 stages:
   - tools
-  - pre-tools
   - tests
   - pre-deploy
   - deploy
@@ -181,7 +180,7 @@ integration test current woocommerce:
 apigen docs:
   image:
     name: wpdesknet/apigen
-  stage: pre-tools
+  stage: pre-deploy
   artifacts:
     expire_in: 1 day
     name: "docs"
@@ -207,6 +206,9 @@ pages:
     expire_in: 1 day
     paths:
       - public
+  only:
+    - tags
+    - branches
 
 build to deploy:
   image: wpdesknet/phpunit-woocommerce:4-0
-- 
GitLab