Skip to content

Commit 5257ff9

Browse files
committed
Fix dev package release
1 parent 9833a41 commit 5257ff9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
steps:
2626
- name: Checkout code
2727
uses: actions/checkout@v5
28-
with:
29-
fetch-depth: 0
3028

3129
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3230
id: python
@@ -54,6 +52,9 @@ jobs:
5452
sed -i "s#image:: docs/#image:: https://raw.githubusercontent.com/MobileTeleSystems/data-rentgen/$GITHUB_SHA/docs/#g" README.rst
5553
sed -i "s#logo_wide_white_text.svg#logo_wide.svg#g" README.rst
5654
55+
- name: Patch release version rules
56+
run: sed -i 's#dirty_template = ".*"#dirty_template = "{tag}"#' pyproject.toml
57+
5758
- name: Build package
5859
run: uv build
5960

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ enabled = true
77
version_file = "data_rentgen/VERSION"
88
count_commits_from_version_file = true
99
dev_template = "{tag}.dev{env:GITHUB_RUN_ID:{ccount}}"
10-
dirty_template = "{tag}"
10+
dirty_template = "{tag}.dev{env:GITHUB_RUN_ID:{ccount}}"
1111

1212
[project]
1313
name = "data-rentgen"

0 commit comments

Comments
 (0)