Skip to content

Merge pull request #5 from dankkom/develop #43

Merge pull request #5 from dankkom/develop

Merge pull request #5 from dankkom/develop #43

Workflow file for this run

name: Publish Python Package
on:
push:
branches:
- master
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install pypa/build
run: |
pip install .
python setup.py build
- name: Build a binary wheel and a source tarball
run: |
python setup.py build sdist bdist bdist_wheel
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}