Skip to content

Commit

Permalink
Update build process to include tar.gz and whl file names
Browse files Browse the repository at this point in the history
  • Loading branch information
hmasdev committed Apr 3, 2024
1 parent 1126c73 commit d4b9b15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/on_push_tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
- name: Build
run: |
python setup.py sdist bdist_wheel
$TARGZNAME = (Get-ChildItem -Name .\dist\*.tar.gz)
$WHLNAME = (Get-ChildItem -Name .\dist\*.whl)
echo "TARGZNAME=$TARGZNAME" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "WHLNAME=$WHLNAME" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Release
id: release
Expand All @@ -56,7 +60,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist/*.tar.gz
asset_path: dist\${{ env.TARGZNAME }}
asset_name: ${{ env.TARGZNAME }}
asset_content_type: application/gzip

- name: Publish .whl
Expand All @@ -65,5 +70,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist/*.whl
asset_path: dist\${{ env.WHLNAME }}
asset_name: ${{ env.WHLNAME }}
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
Expand Down

0 comments on commit d4b9b15

Please sign in to comment.