Skip to content

Commit a16ef0f

Browse files
committed
Use PyPI Trusted Publishing to push releases
1 parent f1856c6 commit a16ef0f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/release.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-24.04
10-
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/project/pykka/
13+
permissions:
14+
id-token: write
1115
steps:
1216
- uses: actions/checkout@v4
13-
- uses: actions/setup-python@v5
17+
- uses: hynek/build-and-inspect-python-package@v2
18+
id: build
19+
- uses: actions/download-artifact@v4
1420
with:
15-
python-version: "3.13"
16-
- run: python -m pip install poetry==1.8.3 tox==4.21.2
17-
- run: tox --skip-missing-interpreters true
18-
- run: poetry build
19-
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
21+
name: ${{ steps.build.outputs.artifact-name }}
22+
path: dist
23+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)