File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9393 name : zope.testing.tar.gz
9494 path : dist/*gz
9595
96+ publish :
97+ name : Publish to PyPI
98+ runs-on : ubuntu-latest
99+ # Only publish on tag pushes
100+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
101+ # Wait for build jobs to complete
102+ needs : [build]
103+ environment :
104+ name : pypi
105+ url : https://pypi.org/p/zope.testing
106+ permissions :
107+ contents : read
108+ id-token : write # Mandatory for trusted publishing
109+
110+ steps :
111+ - name : Download package artifacts
112+ uses : actions/download-artifact@v8
113+ with :
114+ path : dist/
115+ pattern : ' *'
116+ merge-multiple : true
117+
118+ - name : Display structure of downloaded files
119+ run : |
120+ ls -lR dist/
121+
122+ - name : Publish to PyPI
123+ uses : pypa/gh-action-pypi-publish@release/v1
124+ with :
125+ skip-existing : true
126+ packages-dir : dist/
127+ verbose : true
Original file line number Diff line number Diff line change @@ -39,3 +39,6 @@ additional-config = [
3939additional-ignores = [
4040 " docs/_build/html/_sources/api/*" ,
4141 ]
42+
43+ [pypi ]
44+ trusted-publishing = true
Original file line number Diff line number Diff line change @@ -91,3 +91,8 @@ directory = "parts/htmlcov"
9191[tool .setuptools .dynamic ]
9292readme = {file = [" README.rst" , " CHANGES.rst" ]}
9393
94+
95+
96+ [tool .zest-releaser ]
97+ create-wheel = false
98+ upload-pypi = false
You can’t perform that action at this time.
0 commit comments