From 92f4b3aaf83327f78743511a08d5cd5b5bb99409 Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Tue, 18 Jun 2024 18:03:14 +0200 Subject: [PATCH] Avoid unnecessary pages runs. --- .gitlab-ci.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1e59d7..a8673aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,18 +55,22 @@ publish-images: test-pages: stage: test extends: .pages-job + rules: + - if: $CI_COMMIT_BRANCH == "gh-pages" script: - bundle exec jekyll build -d test artifacts: paths: - test -publish-pages: - stage: publish - extends: .pages-job - script: - - bundle exec jekyll build -d public - artifacts: - paths: - - public - environment: production +#publish-pages: +# stage: publish +# extends: .pages-job +# rules: +# - if: $CI_COMMIT_BRANCH == "gh-pages" +# script: +# - bundle exec jekyll build -d public +# artifacts: +# paths: +# - public +# environment: production