Skip to content

Commit c68197e

Browse files
committed
Fetch all tags of repo for building docs.
1 parent 88d8dc2 commit c68197e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ jobs:
1515
- uses: actions/checkout@v4
1616
with:
1717
persist-credentials: false
18-
18+
fetch-depth: 0 # Fetch the full history
19+
ref: ${{ github.ref }} # Check out the current branch or tag
20+
21+
- name: Fetch tags only
22+
run: git fetch --tags --no-recurse-submodules
23+
1924
- name: Set up Python
2025
uses: actions/setup-python@v4
2126
with:

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
# Whitelist pattern for remotes (set to None to use local branches only)
6464
smv_remote_whitelist = None
6565
# Pattern for released versions
66-
smv_released_pattern = r"^tags/.*$"
66+
smv_released_pattern = "" # r"^tags/.*$"
6767
# Format for versioned output directories inside the build directory
6868
smv_outputdir_format = "{ref.name}"
6969
# Determines whether remote or local git branches/tags are preferred if their

0 commit comments

Comments
 (0)