16031aae96
CPU tests Workflow / Testing (ubuntu-latest, 3.12) (push) Failing after 1s
CPU tests Workflow / Testing (ubuntu-latest, 3.13) (push) Failing after 0s
Mypy Type Check / Type Check (push) Failing after 0s
Docs/Test WorkFlow / Test docs build (push) Failing after 1s
PR Conflict Labeler / labeling (push) Failing after 1s
Dependency resolution / Resolve [tflite] extra — Python 3.12 (push) Failing after 0s
Smoke Tests / try-all-models (ubuntu-latest, 3.10) (push) Failing after 0s
Smoke Tests / try-all-models (ubuntu-latest, 3.13) (push) Failing after 1s
CPU tests Workflow / build-pkg (push) Failing after 1s
CPU tests Workflow / Testing (ubuntu-latest, 3.10) (push) Failing after 0s
CPU tests Workflow / Testing (ubuntu-latest, 3.11) (push) Failing after 0s
Smoke Tests / try-all-models (macos-latest, 3.10) (push) Has been cancelled
Smoke Tests / try-all-models (macos-latest, 3.13) (push) Has been cancelled
Smoke Tests / try-all-models (windows-latest, 3.10) (push) Has been cancelled
Smoke Tests / try-all-models (windows-latest, 3.13) (push) Has been cancelled
CPU tests Workflow / Testing (macos-latest, 3.10) (push) Has been cancelled
CPU tests Workflow / Testing (macos-latest, 3.13) (push) Has been cancelled
CPU tests Workflow / Testing (windows-latest, 3.10) (push) Has been cancelled
CPU tests Workflow / Testing (windows-latest, 3.13) (push) Has been cancelled
CPU tests Workflow / testing-guardian (push) Has been cancelled
GPU tests Workflow / Testing (push) Has been cancelled
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: Publish Releases to PyPI
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: ["main", "release/latest", "develop"]
|
|
paths:
|
|
- ".github/workflows/build-package.yml"
|
|
- ".github/workflows/publish-release.yml"
|
|
|
|
jobs:
|
|
build-pkg:
|
|
uses: ./.github/workflows/build-package.yml
|
|
|
|
publish-release:
|
|
name: Publish Release Package
|
|
needs: build-pkg
|
|
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: write # Add this line
|
|
steps:
|
|
- name: 📥 Download distribution artifacts
|
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
|
with:
|
|
name: dist
|
|
path: dist/
|
|
- name: Display distribution files
|
|
run: ls -lh dist/
|
|
|
|
- name: 🚀 Publish to PyPi
|
|
# Only publish non-pre-releases
|
|
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
|
|
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
|
|
with:
|
|
attestations: true
|
|
|
|
- name: 📤 Upload assets to GitHub Release
|
|
if: github.event_name == 'release'
|
|
uses: AButler/upload-release-assets@3d6774fae0ed91407dc5ae29d576b166536d1777 # v3.0
|
|
with:
|
|
files: "dist/*.whl;dist/*.tar.gz"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|