-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
86 lines (80 loc) · 2.92 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
76
77
78
79
80
81
82
83
84
85
86
image: "debian:bookworm-slim"
before_script:
- apt-get update -y
- apt-get install -y git make python3-pip python3-venv python3-yaml texlive-metapost libharfbuzz-bin
- python3 -m venv .venv
- source .venv/bin/activate
- pip3 install -r requirements.txt
stages:
- build
- test
- deploy
- release
build:
stage: build
script:
- make build release
artifacts:
expire_in: 1000 yrs
paths:
- fonts/
test:
stage: test
script:
- make test
artifacts:
expire_in: 1000 yrs
paths:
- proofs/
pages:
stage: deploy
script:
- mkdir public
- cp -rf fonts tests specimen public
artifacts:
expire_in: 1000 yrs
paths:
- public # instruct GitLab to keep the public folder
only:
- master
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
only:
- tags
before_script:
- echo "Pass. Just overriding"
script:
- echo "Running release_job"
release:
name: 'Release $CI_COMMIT_TAG of $CI_PROJECT_NAME'
description: 'Release $CI_COMMIT_TAG' # Need to replace with 'CHANGELOG.md'
# tag_name is a mandatory field and can not be an empty string
tag_name: '$CI_COMMIT_TAG'
ref: $CI_COMMIT_TAG
assets:
links:
- name: 'Nupuram Variable font - Nupuram.tar.gz'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram.tar.gz'
- name: 'Nupuram Variable font - Nupuram.zip'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram.zip'
- name: 'Nupuram Calligraphy Variable font - Nupuram-Calligraphy.tar.gz'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Calligraphy.tar.gz'
- name: 'Nupuram Calligraphy Variable font - Nupuram-Calligraphy.zip'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Calligraphy.zip'
- name: 'Nupuram Color font - Nupuram-Color.tar.gz'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/ttf/Nupuram-Color.tar.gz'
- name: 'Nupuram Color font - Nupuram-Color.zip'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Color.zip'
- name: 'Nupuram Arrows Color font - Nupuram-Arrows-Color.tar.gz'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Arrows-Color.tar.gz'
- name: 'Nupuram Arrows Color font - Nupuram-Arrows-Color.zip'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Arrows-Color.zip'
- name: 'Nupuram Dots font - Nupuram-Dots.tar.gz'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Dots.tar.gz'
- name: 'Nupuram Dots font - Nupuram-Dots.zip'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Dots.zip'
- name: 'Nupuram Display font - Nupuram-Display.tar.gz'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Display.tar.gz'
- name: 'Nupuram Display font - Nupuram-Display.zip'
url: 'https://smc.gitlab.io/fonts/Nupuram/fonts/Nupuram-Display.zip'