File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ jobs:
121121 BUILD_VERSION : ${{ needs.get-next-version.outputs.new-release-version }}
122122 BUILD_TRACK : release
123123 BUILD_COMMIT : ${{ needs.get-next-version.outputs.short-sha }}
124+ OUTPUT_FILENAME : ${{ env.PYTHON_PACKAGE_NAME }}-${{ needs.get-next-version.outputs.new-release-version }}.tar.gz
124125 steps :
125126 - uses : actions/checkout@v3
126127 - uses : actions/setup-python@v5
@@ -140,11 +141,15 @@ jobs:
140141 cat pyproject.toml | grep version
141142 python3 -m pip install --upgrade build
142143 python3 -m build --sdist --outdir dist/
144+ - name : Replace underscores with hyphens in build filename
145+ run : |
146+ BUILD_FILENAME=$(ls dist/ | grep tar.gz)
147+ mv dist/$BUILD_FILENAME dist/${{ env.OUTPUT_FILENAME }}
143148 - name : Upload artifact
144149 uses : actions/upload-artifact@v4
145150 with :
146- name : ${{ env.PYTHON_PACKAGE_NAME }}-${{ env.BUILD_VERSION }}.tar.gz
147- path : dist/${{ env.PYTHON_PACKAGE_NAME }}-${{ env.BUILD_VERSION }}.tar.gz
151+ name : ${{ env.OUTPUT_FILENAME }}
152+ path : dist/${{ env.OUTPUT_FILENAME }}
148153 retention-days : 30
149154 if-no-files-found : error
150155 - name : Publish release distributions to PyPI
You can’t perform that action at this time.
0 commit comments