Skip to content

Version 0.0.3 #64

Version 0.0.3

Version 0.0.3 #64

name: Upload Python Package
on:
release:
types: [created]
push:
branches:
- async
jobs:
pypi:
if: "contains(github.event.head_commit.message, 'Version')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine httpx
python setup.py install
- name: Build wheel and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*.whl dist/*.gz