File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed
ch07/first-python-package Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,32 @@ jobs:
118118 run : python -m pip install cibuildwheel==2.3.1
119119
120120 - name : Build wheels
121- run : python -m cibuildwheel --output-dir wheelhouse
121+ run : python -m cibuildwheel --output-dir wheels
122122 working-directory : ch07/first-python-package # You don't need this in your package
123123
124124 - uses : actions/upload-artifact@v2
125125 with :
126- path : ./ch07/first-python-package/wheelhouse/*.whl # Update to match root of package
126+ path : ./ch07/first-python-package/wheels/*.whl # Update to match root of package
127+
128+ publish :
129+ name : Publish package
130+ if : startsWith(github.event.ref, "refs/tags")
131+ needs :
132+ - format
133+ - lint
134+ - typecheck
135+ - test
136+ - build_source_dist
137+ - build_wheels
138+ runs-on : ubuntu-latest
139+
140+ steps :
141+ - uses : actions/download-artifact@v2
142+ with :
143+ path : ./ch07/first-python-package/dist # Update to match root of package
144+
145+ - uses : pypa/gh-action-pypi-publish@v1.4.2
146+ with :
147+ user : __token__
148+ password : ${{ secrets.PYPI_API_TOKEN }}
149+ packages_dir : ${{ steps.download.outputs.download-path }} # You don't need this in your package
Original file line number Diff line number Diff line change 11[metadata]
2- name = pubpypack-harmony-daneah
2+ name = pubpypack-harmony-dane-hillard
33version = 0.0.1
44description = This package does amazing things.
55long_description = file: README.md
You can’t perform that action at this time.
0 commit comments