Skip to content

Commit 3db8450

Browse files
committed
Upload to pypi
1 parent aeb0a86 commit 3db8450

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,18 @@ jobs:
3535
- name: Release
3636
uses: softprops/action-gh-release@v2
3737
with:
38-
files: dist/*.whl
38+
files: dist/*.whl
39+
upload_pypi:
40+
needs: [build_wheels]
41+
runs-on: ubuntu-latest
42+
environment: pypi
43+
permissions:
44+
id-token: write
45+
steps:
46+
- uses: actions/download-artifact@v4
47+
with:
48+
# unpacks all CIBW artifacts into dist/
49+
pattern: cibw-*
50+
path: dist
51+
merge-multiple: true
52+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ include = ["hyperhyphen"]
2121
pdfextract = ["*.c"]
2222

2323
[tool.cibuildwheel]
24-
2524
test-command = "pytest {project}/tests"
2625
test-requires = ["pytest"]
2726

0 commit comments

Comments
 (0)