image: openjdk:11

workflow:
  rules:
    - if: '$CI_COMMIT_BRANCH'

pages:
  tags:
    - kubernetes
  script:
    - ./gradlew javadoc
    - mv ./build/docs/javadoc public
  artifacts:
    paths:
      - public
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'
  