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: test-pages:
stage: test stage: test
extends: .pages-job extends: .pages-job
rules:
- if: $CI_COMMIT_BRANCH == "gh-pages"
script: script:
- bundle exec jekyll build -d test - bundle exec jekyll build -d test
artifacts: artifacts:
paths: paths:
- test - test
publish-pages: #publish-pages:
stage: publish # stage: publish
extends: .pages-job # extends: .pages-job
script: # rules:
- bundle exec jekyll build -d public # - if: $CI_COMMIT_BRANCH == "gh-pages"
artifacts: # script:
paths: # - bundle exec jekyll build -d public
- public # artifacts:
environment: production # paths:
# - public
# environment: production