Avoid unnecessary pages runs.
This commit is contained in:
parent
7f80f4c6e9
commit
92f4b3aaf8
1 changed files with 13 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue