Skip to content

Update pyproject.toml #56

Update pyproject.toml

Update pyproject.toml #56

name: Publish Python 🐍 distribution 📦 to PyPI
on:
push:
branches:
- main
jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install flit
run: python -m pip install flit
- name: Build and publish to PyPI
env:
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
flit publish