Skip to content

v1.2.1

v1.2.1 #4

Workflow file for this run

name: Publish PyPI release
on:
release:
types: [published]
jobs:
# Upload to PyPI
pypi_upload:
name: Push new release to PyPI
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish to PyPI
env:
# Username has to be __token__ to use API key
TWINE_USERNAME: __token__
# PyPI API key registered as an action secret for the repo
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*