File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 22
22
- uses : actions/upload-artifact@v4
23
23
with :
24
24
path : dist/*.whl
25
+ name : artifact-wheels
25
26
26
27
build_sdist :
27
28
name : Build source distribution
@@ -38,19 +39,26 @@ jobs:
38
39
- uses : actions/upload-artifact@v4
39
40
with :
40
41
path : dist/*.tar.gz
42
+ name : artifact-sdist
41
43
42
44
upload_pypi :
43
45
needs : [build_wheels, build_sdist]
44
46
runs-on : ubuntu-latest
47
+ permissions :
48
+ contents : write # IMPORTANT: mandatory for making GitHub Releases
49
+ id-token : write # IMPORTANT: mandatory for trusted publishing & sigstore
50
+
51
+ environment :
52
+ name : pypi
53
+ url : https://pypi.org/p/aiodns
45
54
# upload to PyPI when a GitHub Release is created
46
55
if : github.event_name == 'release' && github.event.action == 'published'
47
56
steps :
48
57
49
58
with :
50
- name : artifact
59
+ pattern : artifact-*
51
60
path : dist
52
-
53
- - uses : pypa/gh-action-pypi-publish@master
54
- with :
55
- user : __token__
56
- password : ${{ secrets.pypi_password }}
61
+ merge-multiple : true
62
+
63
+ - uses : pypa/gh-action-pypi-publish@release/v1
64
+ name : Publish package distributions to PyPI
You can’t perform that action at this time.
0 commit comments