uniworx.de/.gitlab-ci.yml

30 lines
432 B
YAML

image: nixpkgs/nix-flakes
workflow:
rules:
- if: $CI_COMMIT_BRANCH
cache:
paths:
- .stack-work
- _cache
pages:
stage: deploy
script: &build-script
- nix develop -c stack run site -- build
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == "main"
test:
stage: test
script: *build-script
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH != "main"