Skip to content

Merge pull request #3 from elpablete/main #31

Merge pull request #3 from elpablete/main

Merge pull request #3 from elpablete/main #31

name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
on:
push:
branches: [main]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
runs-on: ubuntu-latest
strategy:
matrix:
# Run in all these versions of Python
python-version: ["3.10"]
steps:
- uses: actions/checkout@master
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install build tools
run: >-
python -m
pip install
--upgrade
setuptools wheel
- name: Build and wheel
run: >-
python
setup.py
sdist
bdist_wheel
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}