Skip to content

Commit 15d19f9

Browse files
committed
ci: preserve provenance in release recovery
1 parent c4ad642 commit 15d19f9

1 file changed

Lines changed: 13 additions & 16 deletions

File tree

.github/workflows/python-release.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
- name: Install uv
5050
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
5151
with:
52+
version: "0.12.3"
5253
python-version: "3.12"
5354

5455
- name: Verify release tag and project version
@@ -123,15 +124,13 @@ jobs:
123124
name: python-distributions
124125
path: release
125126

126-
- name: Install uv
127-
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
128-
129127
- name: Publish ${{ matrix.project }}
130-
run: >-
131-
uv publish
132-
--trusted-publishing always
133-
--check-url https://pypi.org/simple
134-
"release/${{ matrix.directory }}/*"
128+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
129+
with:
130+
packages-dir: release/${{ matrix.directory }}
131+
skip-existing: true
132+
verify-metadata: true
133+
attestations: true
135134

136135
publish-oida:
137136
name: Publish sonicfield-oida to PyPI
@@ -151,12 +150,10 @@ jobs:
151150
name: python-distributions
152151
path: release
153152

154-
- name: Install uv
155-
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
156-
157153
- name: Publish sonicfield-oida
158-
run: >-
159-
uv publish
160-
--trusted-publishing always
161-
--check-url https://pypi.org/simple
162-
"release/oida/*"
154+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
155+
with:
156+
packages-dir: release/oida
157+
skip-existing: true
158+
verify-metadata: true
159+
attestations: true

0 commit comments

Comments
 (0)