summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 485f445ce227b571b70895fe161cb8e255bc21a4 (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
30
31
32
33
34
35
# GitLab Continuous Integration and Deployment configuration for the Markdown
# course website example, using Nix for the build and publishing through GitLab
# Pages.
#
# Author: Pacien TRAN-GIRARD
# Licence: CC BY-NC 4.0

stages:
  - build
  - publish

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

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

  artifacts:
    paths:
      - public

pages:
  stage: publish

  only:
    - main

  script: echo "nothing to build, just deploying"

  artifacts:
    paths:
      - public