Update pythonpublish.yml
This commit is contained in:
parent
8ab5ccb0e4
commit
72b0c4f8cb
1 changed files with 6 additions and 5 deletions
11
.github/workflows/pythonpublish.yml
vendored
11
.github/workflows/pythonpublish.yml
vendored
|
|
@ -17,10 +17,11 @@ jobs:
|
|||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools wheel twine
|
||||
- name: Build and publish
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
- name: Build
|
||||
run: |
|
||||
python setup.py sdist bdist_wheel
|
||||
twine upload dist/*
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
if: startsWith(github.event.ref, 'refs/tags')
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
password: ${{ secrets.PYPI_PASSWORD }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue