Skip to content

Commit d4b9b15

Browse files
committed
Update build process to include tar.gz and whl file names
1 parent 1126c73 commit d4b9b15

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/on_push_tags.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
- name: Build
3939
run: |
4040
python setup.py sdist bdist_wheel
41+
$TARGZNAME = (Get-ChildItem -Name .\dist\*.tar.gz)
42+
$WHLNAME = (Get-ChildItem -Name .\dist\*.whl)
43+
echo "TARGZNAME=$TARGZNAME" | Out-File -FilePath $env:GITHUB_ENV -Append
44+
echo "WHLNAME=$WHLNAME" | Out-File -FilePath $env:GITHUB_ENV -Append
4145
4246
- name: Release
4347
id: release
@@ -56,7 +60,8 @@ jobs:
5660
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5761
with:
5862
upload_url: ${{ steps.release.outputs.upload_url }}
59-
asset_path: dist/*.tar.gz
63+
asset_path: dist\${{ env.TARGZNAME }}
64+
asset_name: ${{ env.TARGZNAME }}
6065
asset_content_type: application/gzip
6166

6267
- name: Publish .whl
@@ -65,5 +70,6 @@ jobs:
6570
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6671
with:
6772
upload_url: ${{ steps.release.outputs.upload_url }}
68-
asset_path: dist/*.whl
73+
asset_path: dist\${{ env.WHLNAME }}
74+
asset_name: ${{ env.WHLNAME }}
6975
asset_content_type: application/zip

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools.packages.find]

0 commit comments

Comments
 (0)