Skip to content

Commit ebfdf49

Browse files
committed
CI: Harmonize versioningit with GHA release workflow
1 parent db2b317 commit ebfdf49

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- uses: actions/checkout@v6
1717
with:
1818
persist-credentials: false
19+
fetch-depth: 0
20+
fetch-tags: true
1921

2022
- name: Set up uv
2123
uses: astral-sh/setup-uv@v7

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ packages = ["src/crate"]
1919

2020
[tool.hatch.version]
2121
source = "versioningit"
22-
default-version = "0.0.0+unknown"
22+
23+
[tool.versioningit.vcs]
24+
method = "git-archive"
25+
default-tag = "0.0.0"
26+
describe-subst = "$Format:%(describe:tags)$"
2327

2428
[project]
2529
name = "crate"

0 commit comments

Comments
 (0)