Skip to content

0.15.3 - Shhhh

0.15.3 - Shhhh #48

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [created]
jobs:
ci:
name: Run CI
uses: ./.github/workflows/ci.yml
publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
needs: ci
environment:
name: pypi
url: https://pypi.org/p/pydocket
permissions:
id-token: write # Required for trusted publishing and PEP 740 attestations
contents: read
steps:
- uses: actions/checkout@v4
with:
# Need full history for proper versioning with hatch-vcs
fetch-depth: 0
- name: Install uv and set Python version
uses: astral-sh/setup-uv@v5
with:
python-version: "3.12"
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Install build dependencies
run: uv pip install hatchling hatch-vcs
- name: Build package
run: uv build
- name: Publish to PyPI with PEP 740 attestations
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/