File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ check-merge-request:
17
17
- export PATH="$PATH:$CARGO_HOME/bin"
18
18
- cargo install typst-cli git-cliff sd
19
19
script :
20
- - typst compile --root=$CI_PROJECT_DIR --font-path=$CI_PROJECT_DIR/fonts $CI_PROJECT_DIR/template/thesis.typ
20
+ - typst compile
21
+ --root=$CI_PROJECT_DIR
22
+ --font-path=$CI_PROJECT_DIR/fonts
23
+ $CI_PROJECT_DIR/template/thesis.typ
21
24
22
25
check-default-branch :
23
26
stage : check
@@ -33,7 +36,11 @@ check-default-branch:
33
36
- export PATH="$PATH:$CARGO_HOME/bin"
34
37
- cargo install typst-cli git-cliff sd
35
38
script :
36
- - typst compile --root=$CI_PROJECT_DIR --font-path=$CI_PROJECT_DIR/fonts $CI_PROJECT_DIR/template/thesis.typ $CI_PROJECT_DIR/thesis_preview.pdf
39
+ - typst compile
40
+ --root=$CI_PROJECT_DIR
41
+ --font-path=$CI_PROJECT_DIR/fonts
42
+ $CI_PROJECT_DIR/template/thesis.typ
43
+ $CI_PROJECT_DIR/thesis_preview.pdf
37
44
# TODO(#1): the preview pdf should be generated by template repo
38
45
# artifacts:
39
46
# paths:
@@ -42,10 +49,10 @@ check-default-branch:
42
49
gitlab-release :
43
50
stage : release
44
51
image : registry.gitlab.com/gitlab-org/release-cli:latest
52
+ rules :
53
+ - if : $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_COMMIT_TAG
45
54
script :
46
55
- echo "releasing $CI_COMMIT_TAG on GitLab!"
47
- rules :
48
- - if : $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && '$CI_COMMIT_TAG'
49
56
release :
50
57
tag_name : ' $CI_COMMIT_TAG'
51
58
description : ' $CI_COMMIT_TAG_MESSAGE'
You can’t perform that action at this time.
0 commit comments