Files
StarPilot/opendbc_repo/.github/workflows/release.yml
T
firestar5683 22a8575199 Vendor dependencies and resources for standalone builds
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
2026-10-03 21:01:18 +00:00

35 lines
848 B
YAML

name: Publish to PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/opendbc
permissions:
id-token: write # trusted publishing
steps:
- uses: actions/checkout@v7
- name: Build distribution
run: |
./test.sh
source .venv/bin/activate
uv pip install build
python -m build
- name: Publish to Test PyPI
if: github.event_name == 'workflow_dispatch'
uses: pypa/gh-action-pypi-publish@v1.14.2
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish to Production PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@v1.14.2