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
24 changes: 6 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ jobs:
previous_tag: ${{ steps.check_pypi.outputs.previous_tag }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- uses: ultralytics/actions/setup-uv@main
- run: uv pip install --system --no-cache ultralytics-actions
- run: uv pip install --no-cache ultralytics-actions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ultralytics/actions#915 merged at 17:18 UTC (da5463a, released as 0.4.0), so setup-uv@main now carries the new defaults and this CI run exercises them. The validation commit pointing at @setup-uv-defaults was already reverted, and the PR description is updated to match.

- id: check_pypi
shell: python
env:
Expand Down Expand Up @@ -77,12 +74,8 @@ jobs:
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- uses: ultralytics/actions/setup-uv@main
- run: uv pip install --system --no-cache build
- run: python -m build
- run: uv build
- uses: actions/upload-artifact@v7
with:
name: dist
Expand Down Expand Up @@ -127,20 +120,15 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- uses: ultralytics/actions/setup-uv@main
- run: |
uv venv sbom-env
uv pip install -e .
env:
VIRTUAL_ENV: sbom-env
- run: uv pip install -e .
- uses: anchore/sbom-action@v0
with:
format: spdx-json
output-file: sbom.spdx.json
path: sbom-env
path: ${{ env.VIRTUAL_ENV }}
env:
SYFT_SOURCE_NAME: ${{ github.repository }} # name the SBOM after the repo, not the venv path
- run: gh release upload ${{ needs.check.outputs.current_tag }} sbom.spdx.json --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading