Skip to content
Snippets Groups Projects
.gitlab-ci.yml 4.08 KiB
Newer Older
Fabian Gabel's avatar
Fabian Gabel committed
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
  stage: build
  allow_failure: false
    name: alpine:latest
    - apk add --no-cache --upgrade bash
    # preprocess .MD files
Fabian Gabel's avatar
Fabian Gabel committed
    - ./preprocIndexMd.sh
Fabian Gabel's avatar
Fabian Gabel committed
      - build
  stage: test
  dependencies: [preprocessing]
    name: pandoc/latex:latest
    entrypoint: ["/bin/sh", "-c"]
    # build research topics
    - pandoc --standalone topics/topic-template.md -o build/topic-template.html  --mathjax
    # build index
    - pandoc --standalone build/index.md -o build/index.html --mathjax
    # build static staff pages (generated by create-staff-yml.sh
    - pandoc --standalone ./build/ataraz.md -o ./build/ataraz.html --mathjax
    - pandoc --standalone ./build/cseifert.md -o ./build/cseifert.html --mathjax
    - pandoc --standalone ./build/dclemens.md -o ./build/dclemens.html --mathjax
    - pandoc --standalone ./build/dgallaun.md -o ./build/dgallaun.html --mathjax
    - pandoc --standalone ./build/druprecht.md -o ./build/druprecht.html --mathjax
    - pandoc --standalone ./build/fboesch.md -o ./build/fboesch.html --mathjax
    - pandoc --standalone ./build/fbuenger.md -o ./build/fbuenger.html --mathjax
    - pandoc --standalone ./build/fgabel.md -o ./build/fgabel.html --mathjax
    - pandoc --standalone ./build/fhamann.md -o ./build/fhamann.html --mathjax
    - pandoc --standalone ./build/hruan.md -o ./build/hruan.html --mathjax
    - pandoc --standalone ./build/hvoss.md -o ./build/hvoss.html --mathjax
    - pandoc --standalone ./build/jangel.md -o ./build/jangel.html --mathjax
    - pandoc --standalone ./build/jdornemann.md -o ./build/jdornemann.html --mathjax
    - pandoc --standalone ./build/jfregin.md -o ./build/jfregin.html --mathjax
    - pandoc --standalone ./build/jgrams.md -o ./build/jgrams.html --mathjax
    - pandoc --standalone ./build/jgrossmann.md -o ./build/jgrossmann.html --mathjax
    - pandoc --standalone ./build/jmeichsner.md -o ./build/jmeichsner.html --mathjax
    - pandoc --standalone ./build/jpmzemke.md -o ./build/jpmzemke.html --mathjax
    - pandoc --standalone ./build/jurizarna.md -o ./build/jurizarna.html --mathjax
    - pandoc --standalone ./build/kalbrecht.md -o ./build/kalbrecht.html --mathjax
    - pandoc --standalone ./build/kklioba.md -o ./build/kklioba.html --mathjax
    - pandoc --standalone ./build/kkruse.md -o ./build/kkruse.html --mathjax
    - pandoc --standalone ./build/mjanssen.md -o ./build/mjanssen.html --mathjax
    - pandoc --standalone ./build/mlindner.md -o ./build/mlindner.html --mathjax
    - pandoc --standalone ./build/mschulte.md -o ./build/mschulte.html --mathjax
    - pandoc --standalone ./build/mwolkner.md -o ./build/mwolkner.html --mathjax
    - pandoc --standalone ./build/pbaasch.md -o ./build/pbaasch.html --mathjax
    - pandoc --standalone ./build/pgupta.md -o ./build/pgupta.html --mathjax
    - pandoc --standalone ./build/rbeddig.md -o ./build/rbeddig.html --mathjax
    - pandoc --standalone ./build/rukena.md -o ./build/rukena.html --mathjax
    - pandoc --standalone ./build/sgoetschel.md -o ./build/sgoetschel.html --mathjax
    - pandoc --standalone ./build/sleborne.md -o ./build/sleborne.html --mathjax
    - pandoc --standalone ./build/sotten.md -o ./build/sotten.html --mathjax
    - pandoc --standalone ./build/tsaathoff.md -o ./build/tsaathoff.html --mathjax
    - pandoc --standalone ./build/vgriem.md -o ./build/vgriem.html --mathjax
    - pandoc --standalone ./build/vtrapp.md -o ./build/vtrapp.html --mathjax
    - pandoc --standalone ./build/wleinen.md -o ./build/wleinen.html --mathjax
    - pandoc --standalone ./build/wmackens.md -o ./build/wmackens.html --mathjax
    - pandoc --standalone ./build/ymogge.md -o ./build/ymogge.html --mathjax
  artifacts:
    paths:
Fabian Gabel's avatar
Fabian Gabel committed
pages:
  stage: deploy
  script:
    - mkdir .public
    - cp -r build/*.html .public
Fabian Gabel's avatar
Fabian Gabel committed
    - mv .public public
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH