@@ -110,8 +110,6 @@ jobs:
110110 run : |
111111 docker run --name test build bash /project/.github/workflows/container_tests.sh
112112 docker cp test:/project/dist .
113- docker cp test:/project/requirements.txt .
114- docker cp test:/project/requirements_dev.txt .
115113 docker cp test:/project/cov.xml .
116114
117115 - name : Upload coverage to Codecov
@@ -134,11 +132,8 @@ jobs:
134132 - name : Upload build files
135133 uses : actions/upload-artifact@v3
136134 with :
137- name : build_files
138- path : |
139- dist
140- requirements.txt
141- requirements_dev.txt
135+ name : dist
136+ path : dist/*
142137
143138 sdist :
144139 needs : container
@@ -151,7 +146,7 @@ jobs:
151146 # ${GITHUB_REPOSITORY##*/} is the repo name without org
152147 # Replace this with the cli command if different to the repo name
153148 run : |
154- pip install build_files/ dist/*.gz
149+ pip install dist/*.gz
155150 ${GITHUB_REPOSITORY##*/} --version
156151
157152 release :
@@ -169,14 +164,13 @@ jobs:
169164 uses : softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
170165 with :
171166 files : |
172- build_files/*
173- build_files/dist/*
167+ dist/*
174168 generate_release_notes : true
175169 env :
176170 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
177171
178172 - name : Publish to PyPI
179173 env :
180174 TWINE_USERNAME : __token__
181- TWINE_PASSWORD : ${{ secrets.pypi_token }}
182- run : pipx run twine upload build_files/ dist/*
175+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
176+ run : pipx run twine upload dist/*/whl dist/*.tar.gz
0 commit comments