.github/workflows/publish.yml
---
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@v5
with:
python-version: "3.12"
- name: ๐ Publish to PyPi
run: |
pip install poetry
poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_KEY }}