summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: ebb1ee7743268f01f3f553fdd09f59437c1dcdf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
stages:
  - build
  - publish

flake:
  stage: build
  image: nixpkgs/nix-flakes:nixos-22.05

  script:
    - nix build .#
    - cp -Lr result out

  artifacts:
    paths:
      - out/

pages:
  stage: publish

  only:
    - main

  script:
    - cp -r out/website public

  artifacts:
    paths:
      - public