Skip to content

Make automatic publishing to PyPi (#8) #1

Make automatic publishing to PyPi (#8)

Make automatic publishing to PyPi (#8) #1

Workflow file for this run

# Build the package and publish it to PyPI after tests pass.
name: Publish to PyPI
on:
push:
branches: [ "main" ]
tags: [ "v*" ]
jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Build package
run: |
python -m pip install -U pip build
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}