Skip to content

Commit

Permalink
Add cleanup step before pypi publish
Browse files Browse the repository at this point in the history
  • Loading branch information
WiZeYAR committed Nov 17, 2024
1 parent e9b24e2 commit cc5b5bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
asset_path: ./dist/asyncapi_python-${{ env.PROJECT_VERSION }}-py3-none-any.whl
asset_name: asyncapi_python-${{ env.PROJECT_VERSION }}-py3-none-any.whl
asset_content_type: application/x-wheel+zip

- name: Upload sdist to Release
uses: actions/upload-release-asset@v1
env:
Expand All @@ -96,5 +96,10 @@ jobs:
asset_name: asyncapi-python-codegen-${{ env.PROJECT_VERSION }}.pex
asset_content_type: application/octet-stream

- name: Cleanup dist folder before PyPI publish
run: |
rm dist/asyncapi-python-codegen*
rm dist/requirements.txt
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit cc5b5bd

Please sign in to comment.