Skip to content

Publish

Publish #28

Workflow file for this run

name: Publish
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Ensure latest pip
run: python -m pip install --upgrade pip
- name: Install hatch
run: python -m pip install hatch
- name: Built
run: hatch build
- name: Publish
env:
HATCH_INDEX_USER: "__token__"
HATCH_INDEX_AUTH: "${{ secrets.PYPI_TOKEN }}"
run: hatch publish
- name: Deploy docs
run: hatch run docs:deploy