my-website/.gitlab-ci.yml

29 lines
729 B
YAML

variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
image: archlinux:latest
interruptible: true
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
before_script:
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
script:
- zola build
artifacts:
paths:
- public
exclude:
- public/404.html
- public/sitemap.xml
- public/robots.txt
basic-zola-test:
image: archlinux:latest
interruptible: true
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
before_script:
- pacman --needed --noconfirm --sync --refresh --sysupgrade zola
script:
- zola build