Skip to content

v0.11.4

v0.11.4 #6

Workflow file for this run

name: Publish package to PyPI
on:
release:
types:
- published
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install requirements
run: |
pip install -U twine nox[uv]==2025.2.9
- name: Build
run: nox -s build
- name:
if: ! startsWith(github.ref , 'refs/tags/')
run: |
echo "::warning::Not a tag, not uploading to PyPi"
ls -l dist/*
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
echo ${{github.ref}}
twine upload dist/*