Skip to content

Upload Package to PyPI #7

Upload Package to PyPI

Upload Package to PyPI #7

Workflow file for this run

name: Upload Package to PyPI
on:
release:
types: [created]
jobs:
deploy:
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 setuptools-scm wheel twine
- name: Build and test distribution
run: |
python setup.py sdist bdist_wheel
python -m twine check dist/*
- name: Publish to PyPI
uses: pypa/[email protected]
env:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
verbose: true