Merge pull request #108 from roboflow/1.1.0-release #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish RF-DETR Releases to PyPI | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]+[0-9]" | |
| - "[0-9]+.[0-9]+[0-9]+.[0-9]" | |
| - "[0-9]+.[0-9]+.[0-9]" | |
| workflow_dispatch: | |
| permissions: {} # Explicitly remove all permissions by default | |
| jobs: | |
| publish-release: | |
| name: Publish Release Package | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: release | |
| url: https://pypi.org/project/rfdetr/ | |
| timeout-minutes: 10 | |
| permissions: | |
| id-token: write # Required for PyPI publishing | |
| contents: read # Required for checkout | |
| strategy: | |
| matrix: | |
| python-version: ["3.10"] | |
| steps: | |
| - name: 📥 Checkout the repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: 🐍 Install uv and set Python version ${{ matrix.python-version }} | |
| uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5.4.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: 🏗️ Build source and wheel distributions | |
| run: | | |
| uv pip install -r pyproject.toml --extra build | |
| uv build | |
| uv run twine check --strict dist/* | |
| - name: 🚀 Publish to PyPi | |
| uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 | |
| with: | |
| attestations: true |