DEV Community

epassaro
epassaro

Posted on • Updated on

A RTD-like documentation pipeline for GitHub Actions

My Workflow

In the recent years, lot of Python packages moved their documentation pipelines from third party services like ReadTheDocs to GitHub Pages, but some useful features were missing in the process.

This workflow intends to be a full featured replacement for RTD on GitHub Actions, giving back the control of the documentation deployment process to developers.

Features:

  1. Support of pip and conda dependency files.
  2. Build and deploy branches under /branches/<branch>.
  3. Build and deploy tags under /tags/<tag>
  4. Secure build and preview of pull requests under /pull/<number> via labels.
  5. Manual trigger for branches.
  6. Select branch to deploy the site (default: gh-pages).
  7. Redirect the main domain to /latest or /stable (default: /latest).
  8. Redirect the /stable subdomain to the latest SemVer tag, or the stable branch (if exists).
  9. Automatic removal of pages from closed/merged pull requests, and deleted branches or tags.

Not supported:

Multi-language builds.

Live demo:

Submission Category:

DIY Deployments

Yaml File or Link to Code

GitHub logo epassaro / actions-rtd-workflow

A RTD-like documentation pipeline for GitHub Actions

actions-rtd-workflow

A RTD-like documentation pipeline for GitHub Actions

Features

  1. Support of pip and conda dependency files.
  2. Build and deploy branches under /branches/<branch>.
  3. Build and deploy tags under /tags/<tag>.
  4. Secure build and preview of pull requests under /pull/<number> via labels.
  5. Manual trigger for branches.
  6. Select branch to deploy the site (default: gh-pages).
  7. Redirect the main domain to /latest or /stable (default: /latest).
  8. Redirect the /stable subdomain to the latest SemVer tag, or the stable branch (if exists).
  9. Automatic removal of pages from closed/merged pull requests, and deleted branches or tags.

Not supported

Multi-language builds.

Live demo




Additional Resources / Info

Top comments (0)