Skip to content

Commit 683db2b

Browse files
committed
Use trusted publishing
1 parent ac0ea0e commit 683db2b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
build:
1010

1111
runs-on: ubuntu-latest
12+
environment: default
1213
strategy:
1314
matrix:
1415
python-version: [ "3.8", "3.10", "3.12" ]

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
publish:
1212

1313
runs-on: ubuntu-latest
14+
environment: publish
1415

1516
permissions:
1617
id-token: write
@@ -29,5 +30,8 @@ jobs:
2930
- name: Install the project
3031
run: uv sync --all-extras --dev
3132

32-
- name: Publish
33-
run: uv publush
33+
- name: Build package
34+
run: uv build
35+
36+
- name: Publish to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)