Skip to content

Page deployment fails after successful build

The pages job succeeds, but the pipeline fails on the master branch. The page is not deployed.

The error message shown is: pages:deploy - No entries extracted

  • MkDocs version: 1.1.2
  • Commit: 50535eb9 (master branch)

Analysis

The Gitlab pages requirements specify that the content to be published should be in a directory called public. But the default build directory is site, at least as of mkdocs v1.1.2.

The solution would be to force mkdocs to build into public directory.