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

Commit 76a3a68

Browse files
authored
Automatically upload releases to PyPI (#194)
1 parent c53aff8 commit 76a3a68

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/main.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,16 @@ jobs:
125125
with:
126126
tag_name: ${{ env.PACKAGE_VERSION }}
127127
name: ${{ env.PACKAGE_VERSION }}
128-
draft: true
128+
draft: false
129129
prerelease: false
130130
files: |
131131
dist/${{ env.PACKAGE_NAME }}*.whl
132132
dist/*.tar.gz
133+
- name: Create PyPI Release
134+
if: startsWith(github.ref, 'refs/tags/')
135+
env:
136+
TWINE_USERNAME: __token__
137+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
138+
run: |
139+
pip install twine
140+
twine upload dist/*

0 commit comments

Comments
 (0)