File tree Expand file tree Collapse file tree 1 file changed +25
-25
lines changed
Expand file tree Collapse file tree 1 file changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -34,30 +34,30 @@ jobs:
3434 uses : softprops/action-gh-release@v2
3535 with :
3636 files : ./dist/*
37+
38+ publish :
39+ if : startsWith(github.ref, 'refs/tags/v')
40+ name : Publish package to PyPI
41+ runs-on : ubuntu-latest
42+ environment : release
43+ steps :
44+ - name : Download sdist artifact
45+ uses : actions/download-artifact@v6
46+ with :
47+ name : sdist
48+ path : ./dist
49+
50+ - name : Download wheels artifact
51+ uses : actions/download-artifact@v6
52+ with :
53+ name : wheels
54+ path : ./dist
3755
38- publish :
39- if : startsWith(github.ref, 'refs/tags/v')
40- name : Publish package to PyPI
41- runs-on : ubuntu-latest
42- environment : release
43- steps :
44- - name : Download sdist artifact
45- uses : actions/download-artifact@v6
46- with :
47- name : sdist
48- path : ./dist
49-
50- - name : Download wheels artifact
51- uses : actions/download-artifact@v6
52- with :
53- name : wheels
54- path : ./dist
55-
56- - name : Upload distributions to PyPI
57- uses : pypa/gh-action-pypi-publish@release/v1
58- with :
59- user : __token__
60- password : ${{ secrets.PYPI_TOKEN }}
61- skip-existing : true
62- attestations : false
56+ - name : Upload distributions to PyPI
57+ uses : pypa/gh-action-pypi-publish@release/v1
58+ with :
59+ user : __token__
60+ password : ${{ secrets.PYPI_TOKEN }}
61+ skip-existing : true
62+ attestations : false
6363
You can’t perform that action at this time.
0 commit comments