aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: c807dd1ebeb1c40597ae13fe1c9b1b0e57c6eac4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
image: hugomods/hugo:latest

main:
  variables:
    HUGO_ENV: production
    TYPST_PACKAGE_GIT_REPO: https://gitlab.com/KaranJayachandra/typst.git
  script:
    - apk add typst
    - git clone ${TYPST_PACKAGE_GIT_REPO} ~/.local/share/typst/packages/local
    - typst compile resume.typ static/resume.pdf
    - ls static
    - hugo
    - ls public
    - ls public/static
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH