Skip to content

Commit

Permalink
build(docs): fetch tags in readthedocs builds
Browse files Browse the repository at this point in the history
Readthedocs builds don't fetch tags when cloning the repo. This is a problem
for us because Rockcraft's version comes from the tag (via setuptools-scm),
so do a fetch of the tags as a post-checkout step.
  • Loading branch information
tigarmo committed Jun 19, 2024
1 parent f41d562 commit 0ffc239
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ build:
os: ubuntu-22.04
tools:
python: "3.10"
jobs:
post_checkout:
- git fetch --tags --depth 1 # Also fetch tags
- git describe # Useful for debugging

# Build documentation in the docs/ directory with Sphinx
sphinx:
Expand Down

0 comments on commit 0ffc239

Please sign in to comment.