34 lines
495 B
YAML
34 lines
495 B
YAML
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 gup public
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == "main"
|
|
|
|
test:
|
|
stage: test
|
|
script: *build-script
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH != "main"
|