image: nixpkgs/nix-flakes workflow: rules: - if: $CI_COMMIT_BRANCH variables: STACK_ROOT: "${CI_PROJECT_DIR}/.stack-root" cache: paths: - .stack-work - .stack-root - _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"