mirror of
https://github.com/roboflow/supervision.git
synced 2026-03-27 16:21:51 +00:00
Bumps the github-actions group with 3 updates: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv), [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).
Updates `astral-sh/setup-uv` from 7.3.0 to 7.3.1
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](eac588ad8d...5a095e7a20)
Updates `actions/upload-artifact` from 6 to 7
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)
Updates `actions/download-artifact` from 7 to 8
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v7...v8)
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: 7.3.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
- dependency-name: actions/upload-artifact
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: actions/download-artifact
dependency-version: '8'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Publish Supervision Releases to PyPI
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: [main, develop]
|
|
paths:
|
|
- ".github/workflows/build-package.yml"
|
|
- ".github/workflows/publish-release.yml"
|
|
|
|
permissions: {} # Explicitly remove all permissions by default
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: read
|
|
uses: ./.github/workflows/build-package.yml
|
|
|
|
publish-release:
|
|
name: Publish Release Package
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: release
|
|
url: https://pypi.org/project/supervision/
|
|
timeout-minutes: 10
|
|
permissions:
|
|
id-token: write # Required for PyPI publishing
|
|
contents: write # Required for checkout and upload assets
|
|
steps:
|
|
- name: 📥 Download distribution artifacts
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
name: dist
|
|
path: dist/
|
|
- name: List distribution artifacts
|
|
run: ls -lh dist/
|
|
|
|
- name: 📦 Upload assets to Release
|
|
if: github.event_name == 'release'
|
|
uses: AButler/upload-release-assets@v3.0
|
|
with:
|
|
files: "dist/*"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: 🚀 Publish to PyPi
|
|
# We only want to publish to PyPi if the event is a release and it's not a pre-release.
|
|
if: (github.event_name == 'release' && github.event.release.prerelease != true) || github.event_name == 'workflow_dispatch'
|
|
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
|
|
with:
|
|
attestations: true
|