Skip to content

Upload Python Package #2

Upload Python Package

Upload Python Package #2

Workflow file for this run

---
name: Upload Python Package
on:
release:
types: [ published ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install PyPA/build
run: |
python -m pip install --upgrade pip
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf1
with:
password: ${{ secrets.PYPI_TOKEN }}