Skip to content

Commit 8ed178d

Browse files
committed
fix: move semantic release build command
1 parent 8ea98be commit 8ed178d

File tree

2 files changed

+4
-23
lines changed

2 files changed

+4
-23
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ jobs:
120120
with:
121121
fetch-depth: 0
122122
persist-credentials: false
123-
- name: Set up uv
124-
uses: astral-sh/setup-uv@v7
125-
with:
126-
python-version: "3.11"
127-
activate-environment: true
128123
- name: Python Semantic Release
129124
id: release
130125
uses: python-semantic-release/python-semantic-release@v10.4.1

pyproject.toml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,32 +68,18 @@ build-backend = "hatchling.build"
6868

6969
[tool.semantic_release]
7070
branch = "main"
71+
version_toml = ["pyproject.toml:project.version"]
72+
build_command = "pip install uv && uv lock --upgrade-package python-roborock && git add uv.lock && uv build"
73+
changelog_file = 'CHANGELOG.md'
74+
commit = true
7175

7276
[tool.semantic_release.branches.main]
7377
match = "main"
7478
prerelease = false
75-
version_toml = ["pyproject.toml:project.version"]
76-
build_command = """
77-
pip install uv
78-
uv lock --upgrade-package python-roborock
79-
git add uv.lock
80-
uv build
81-
"""
82-
changelog_file = 'CHANGELOG.md'
83-
commit = true
8479

8580
[tool.semantic_release.branches.temp-main-branch]
8681
match = "temp-main-branch"
8782
prerelease = false
88-
version_toml = ["pyproject.toml:project.version"]
89-
build_command = """
90-
pip install uv
91-
uv lock --upgrade-package python-roborock
92-
git add uv.lock
93-
uv build
94-
"""
95-
changelog_file = 'CHANGELOG.md'
96-
commit = true
9783

9884

9985
[tool.semantic_release.commit_parser_options]

0 commit comments

Comments
 (0)