Skip to content

Upload Python Package #6

Upload Python Package

Upload Python Package #6

Workflow file for this run

name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel "blessed>=1.5" cwcwidth "backports.cached-property; python_version < '3.9'"
- name: Build sdist
run: |
python setup.py sdist
python setup.py wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}