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"