Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ jobs:
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
id-token: write # Required for trusted publishing and PEP 740 attestations
contents: read

steps:
Expand All @@ -31,10 +34,12 @@ jobs:
cache-dependency-glob: "pyproject.toml"

- name: Install build dependencies
run: uv pip install build hatchling hatch-vcs
run: uv pip install hatchling hatch-vcs

- name: Build package
run: uv build

- name: Publish to PyPI
run: uv publish
- name: Publish to PyPI with PEP 740 attestations
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/