Skip to content

Commit a7f58b3

Browse files
committed
add publish to pypi
1 parent 7ec7144 commit a7f58b3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/python.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,25 @@ jobs:
2929
- name: Test with pytest
3030
run: |
3131
pytest --cov=helloasso_python
32+
- name: upload dists
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: release-dists
36+
path: dist/
37+
38+
pypi-publish:
39+
runs-on: ubuntu-latest
40+
needs:
41+
- build
42+
permissions:
43+
id-token: write
44+
45+
steps:
46+
- name: Retrieve release distributions
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: release-dists
50+
path: dist/
51+
52+
- name: Publish release distributions to PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1.12

0 commit comments

Comments
 (0)