# Copyright (c) Delanoe Pirard / Aedelon # Licensed under the Apache License, Version 2.0 name: Publish to PyPI on: release: types: [published] jobs: publish: runs-on: ubuntu-latest environment: pypi permissions: id-token: write # Required for trusted publishing steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Required for hatch-vcs version - name: Install uv uses: astral-sh/setup-uv@v4 - name: Set up Python run: uv python install 3.11 - name: Build package run: uv build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 # Uses trusted publishing (OIDC) - no API token needed # Configure at: https://pypi.org/manage/project/awesome-depth-anything-3/settings/publishing/