Skip to content

Commit 01dcd39

Browse files
fix(ci): build package outside semantic-
release action
1 parent 7f99269 commit 01dcd39

2 files changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ jobs:
8686
uses: python-semantic-release/python-semantic-release@v10.4.1
8787
with:
8888
github_token: ${{ secrets.GITHUB_TOKEN }}
89-
- name: Upload built distributions
90-
if: steps.semantic-release.outputs.released == 'true'
91-
uses: actions/upload-artifact@v4
92-
with:
93-
name: python-package
94-
path: dist/*
9589

9690
publish-package:
9791
if: needs.release.outputs.released == 'true'
@@ -101,15 +95,18 @@ jobs:
10195
contents: read
10296
packages: write
10397
steps:
98+
- uses: actions/checkout@v4
99+
with:
100+
ref: ${{ needs.release.outputs.commit_sha }}
101+
- uses: astral-sh/setup-uv@v6
104102
- name: Set up Python
105103
uses: actions/setup-python@v5
106104
with:
107105
python-version: "3.14"
108-
- name: Download built distributions
109-
uses: actions/download-artifact@v4
110-
with:
111-
name: python-package
112-
path: dist
106+
- name: Install dependencies
107+
run: uv sync --python 3.14 --locked
108+
- name: Build package
109+
run: uv build
113110
- name: Install Twine
114111
run: python -m pip install --upgrade twine
115112
- name: Publish package

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ dev = [
5151
]
5252

5353
[tool.semantic_release]
54-
build_command = """
55-
uv build
56-
uv run --python 3.14 mkdocs build --strict
57-
"""
5854
commit_message = "chore(release): v{version}"
5955
commit_parser = "conventional"
6056
tag_format = "v{version}"

0 commit comments

Comments
 (0)