Skip to content

PyPI Publish

PyPI Publish #10

Workflow file for this run

# This action allows you to upload your Python distribution packages in the dist/ directory to PyPI.
# This text suggests a minimalistic usage overview. For more detailed walkthrough check out the PyPA guide.
name: PyPI Publish
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel pipenv build setuptools_scm
- name: Build
run: |
python3 -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}