-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
75 lines (71 loc) · 1.42 KB
/
.gitlab-ci.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
stages:
- ins
- docs
- dist
- ship
ins:
image: philipptempel/docker-ubuntu-tug-texlive:2019
stage: ins
script:
- make distclean
- make ins
artifacts:
name: "${CI_PROJECT_PATH_SLUG}_${CI_COMMIT_REF_NAME}"
expire_in: 2 months
paths:
- '*.cls'
- '*.sty'
- '*.dict'
- '*.pdf'
- '*.tex'
tags:
- docker
docs:
image: philipptempel/docker-ubuntu-tug-texlive:2019
stage: docs
script:
- make -j 5 docs
artifacts:
name: "${CI_PROJECT_PATH_SLUG}_${CI_COMMIT_REF_NAME}"
expire_in: 2 months
paths:
- '*.cls'
- '*.sty'
- '*.dict'
- '*.pdf'
- '*.tex'
tags:
- docker
dist:
image: philipptempel/docker-ubuntu-tug-texlive:2019
stage: dist
script:
- make dist
artifacts:
name: "${CI_PROJECT_PATH_SLUG}_${CI_COMMIT_REF_NAME}"
expire_in: 2 months
paths:
- 'dist/*'
tags:
- docker
ghr:
image:
name: chhinze/ghr
entrypoint: ["/bin/sh", "-c"]
stage: ship
before_script:
- 'apk add --no-cache --update alpine-sdk'
- 'apk add --no-cache bash'
- 'apk add --no-cache zip'
script:
# release all files
- 'ghr -t ${GHR_GITHUB_TOKEN} -r ${GHR_GITHUB_REPO} -u ${GHR_GITHUB_USERNAME} -replace "${CI_COMMIT_TAG}" dist/'
only:
- tags
artifacts:
name: "${CI_PROJECT_PATH_SLUG}_${CI_COMMIT_REF_NAME}"
expire_in: 2 months
paths:
- 'dist/*'
tags:
- docker