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

resume:
  variables:
    TYPST_PACKAGE_GIT_REPO: git@gitlab.com:KaranJayachandra/typst.git
  before_script:
    - apk add typst
    - cd $XDG_DATA_HOME && git clone $TYPST_PACKAGE_GIT_REPO local
  script:
    - typst compile resume.typ
    - cp resume.pdf static/resume.pdf

pages:
  variables:
    HUGO_ENV: production
  script:
    - hugo
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH