a049c5a4ef1d2026fa80692bece6ec1b81ab5043
[groups/soviet-russia/public.git] / .gitlab-ci.yml
1 stages:
2   - build
3   - publish
4
5 image: registry.gitlab.com/adehnert/gametex-deps-docker:latest
6
7 build game:
8   stage: build
9   script:
10     - apt-get update && apt-get install -y texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-pstricks python3 make
11     - make install
12     - mkdir artifacts
13     - cp faq.pdf style-guide.pdf artifacts/ && cp tea/rating.pdf artifacts/tea-rating.pdf
14
15   artifacts:
16     paths:
17       - artifacts/
18     expire_in: 1 week
19
20 pages:
21   # "pages" job name is special, and triggers creation of GitLab pages:
22   # https://gitlab.com/help/user/project/pages/getting_started_part_four.md
23   stage: publish
24   script:
25     - mkdir -p public
26     - cp artifacts/*.pdf index.html public/
27
28   artifacts:
29     paths:
30       - public
31     expire_in: 1 month
32
33   only:
34     - master
35     - pages-test