Gh:pages is not adding subdirectories

I’m trying to publish docs generated automatically to github pages using dpl2. It succeeds for the files but not for the subdirectories. Build: https://travis-ci.com/Corollarium/Formularium/jobs/266135254

Here’s the relevant .travis.yml code:

  deploy:
    provider: pages:git
    token: ${GITHUB_TOKEN}
    cleanup: true
    edge: true
    verbose: true
    local_dir: docs/

What do I need to do to ensure that all files and subdirs in docs/ are committed?

It was the cleanup option.