---
name: Publish to PyPI

"on":
  push:
    tags:
      - "*"

jobs:
  publish_to_pypi:
    runs-on: ubuntu-latest

    steps:
      - name: ⤵️ Check out code from GitHub
        uses: actions/checkout@v4

      - name: 🏗 Set up Python 3.12
        id: python
        uses: actions/setup-python@v4
        with:
          python-version: "3.12"

      - name: 🚀 Publish to PyPi
        run: |
          pip install poetry
          poetry publish --build -u __token__ -p  ${{ secrets.PYPI_API_KEY }}
