Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Automatically upload releases to PyPI (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Jan 29, 2022
1 parent c53aff8 commit 76a3a68
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,16 @@ jobs:
with:
tag_name: ${{ env.PACKAGE_VERSION }}
name: ${{ env.PACKAGE_VERSION }}
draft: true
draft: false
prerelease: false
files: |
dist/${{ env.PACKAGE_NAME }}*.whl
dist/*.tar.gz
- name: Create PyPI Release
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install twine
twine upload dist/*

0 comments on commit 76a3a68

Please sign in to comment.