Skip to content

v7.1.0

v7.1.0 #45

Workflow file for this run

name: Publish Python Package
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Hatch
run: pip install hatch
- name: Build the package
run: hatch build
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_api_key }}
run: pip install twine && twine upload dist/*