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:

Here’s the relevant .travis.yml code:

    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.