@@ -115,8 +115,6 @@ jobs:
115115 run : |
116116 docker run --name test build bash /project/.github/workflows/container_tests.sh
117117 docker cp test:/project/dist .
118- docker cp test:/project/requirements.txt .
119- docker cp test:/project/requirements_dev.txt .
120118 docker cp test:/project/cov.xml .
121119
122120 - name : Upload coverage to Codecov
@@ -140,11 +138,8 @@ jobs:
140138 - name : Upload build files
141139 uses : actions/upload-artifact@v3
142140 with :
143- name : build_files
144- path : |
145- dist
146- requirements.txt
147- requirements_dev.txt
141+ name : dist
142+ path : dist/*
148143
149144 sdist :
150145 needs : container
@@ -158,7 +153,7 @@ jobs:
158153 # Replace this with the cli command if different to the repo name
159154 # (In the python3-pip-skeleton-cli this is already renamed)
160155 run : |
161- pip install build_files/ dist/*.gz
156+ pip install dist/*.gz
162157 python3-pip-skeleton --version
163158
164159 release :
@@ -176,14 +171,13 @@ jobs:
176171 uses : softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
177172 with :
178173 files : |
179- build_files/*
180- build_files/dist/*
174+ dist/*
181175 generate_release_notes : true
182176 env :
183177 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
184178
185179 - name : Publish to PyPI
186180 env :
187181 TWINE_USERNAME : __token__
188- TWINE_PASSWORD : ${{ secrets.pypi_token }}
189- run : pipx run twine upload build_files/ dist/*
182+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
183+ run : pipx run twine upload dist/*/whl dist/*.tar.gz
0 commit comments