Skip to content

pypi-manual

pypi-manual #4

name: pypi-manual
on:
workflow_dispatch:
jobs:
bob-the-builder:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest setuptools wheel twine
pip install -e .
pip install -r requirements.txt
- name: Build binary wheel and a source tarball
run: |
python setup.py install
python setup.py sdist bdist_wheel
- run: echo 'Tests successful. Publishing to PyPI now.'
- name: Build app (Ubuntu / macOS)
env:
USERNAME: ${{ secrets.pypi_token }}
KEY: ${{ secrets.pypi_api }}
run: python -m twine upload --skip-existing -u $USERNAME -p $KEY dist/*