aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 60eb76ddedd84284a7408c14a7e15cdc0c828bd8 (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
---
variables:
  SITE_URL: spec.torproject.org

build:
  # Chosen more or less arbitrarily.
  image: hrektts/mdbook
  script:
    - apt-get update && apt-get install -y python3 git
    - ./proposals/check_index
    - ./build_html.sh
    - mv html public
  artifacts:
    paths:
      - public

include:
  project: tpo/tpa/ci-templates
  file:
    - static-shim-deploy.yml
    - pages-deploy.yml

# use pages for merge requests, not main (which is the default in the
# above template). the logic here is that we want people that do not
# have acess to the repository to still have a preview of their merge
# request.
pages:
  rules:
    - if: '$CI_PROJECT_ROOT_NAMESPACE != "tpo" && $CI_PIPELINE_SOURCE == "merge_request"'