Skip to content

v0.4.0: Apache 2.0 license (commercial use) #9

v0.4.0: Apache 2.0 license (commercial use)

v0.4.0: Apache 2.0 license (commercial use) #9

Workflow file for this run

name: Deploy to pypi
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
# Use the minimum Python version in pyproject.toml (later versions should maintain backwards-compatibility)
python-version: "3.10"
- name: Install dependencies
run: |
pip install . && pip install hatch
- name: Publish to PyPi
env:
HATCH_INDEX_USER: "__token__"
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
run: |
hatch build --clean && hatch publish