Avoid unnecessary pages runs.

This commit is contained in:
Michael Lipp 2024-06-18 18:03:14 +02:00
parent 7f80f4c6e9
commit 92f4b3aaf8

View file

@ -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