Skip to content

Commit a7db314

Browse files
authored
Merge pull request #4 from netboxlabs/develop
Release: diode-sdk-python
2 parents 63c586f + 2fb8262 commit a7db314

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)