From c4f98a0c4d67b0bb5fa4841795d6b8ceb12d325f Mon Sep 17 00:00:00 2001
From: Theodore Vanrenterghem <theodorevanrenterghem@gmail.com>
Date: Mon, 18 Sep 2023 12:21:30 +0200
Subject: [PATCH 1/2] ok

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 547e11b..40ef147 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,6 +41,8 @@ build-job:
   artifacts:
     paths:
       - "docs/"
+  rules:
+   - if: $CI_COMMIT_BRANCH == "main"
   only:
    - main
    - pushes
@@ -55,6 +57,8 @@ pages:
   artifacts:
     paths:
      - public
+  rules:
+   - if: $CI_COMMIT_BRANCH == "main"
   only:
     - main
     - pushes
-- 
GitLab


From 8015922368c954adfdd845e05f100a4be4e04e29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?VANRENTERGHEM=20Th=C3=A9odore?=
 <theodore.vanrenterghem@inrae.fr>
Date: Mon, 18 Sep 2023 12:23:04 +0200
Subject: [PATCH 2/2] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 40ef147..4a53c9b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,9 +43,6 @@ build-job:
       - "docs/"
   rules:
    - if: $CI_COMMIT_BRANCH == "main"
-  only:
-   - main
-   - pushes
 
 
 pages:
@@ -59,9 +56,6 @@ pages:
      - public
   rules:
    - if: $CI_COMMIT_BRANCH == "main"
-  only:
-    - main
-    - pushes
   tags:
     - stable
   environment: production
-- 
GitLab