Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 685 B
stages:
  - check
  - build
  - deploy

variables:
  GIT_SUBMODULE_STRATEGY: recursive

check:
  stage: check
  script:
    - make check
  tags:
    - pandoc

build:
  stage: build
  script:
    - make
  tags:
    - pandoc

deploy:
  stage: deploy
  script:
    - TITLE=$(make title)
    - make
    - >-
      curl -f -v
      -u "$NEXTCLOUD_SHARE:$NEXTCLOUD_PW"
      -T "$TITLE.pdf"
      -H 'X-Requested-With: XMLHttpRequest'
      -H 'X-Method-Override: PUT'
      "https://portal.idiv.de/nextcloud/public.php/webdav/$TITLE.pdf"
  environment:
    name: production
  only:
    refs:
      - master
    variables:
      - $NEXTCLOUD_PW
      - $NEXTCLOUD_SHARE
  tags:
    - pandoc