forked from commaai/opendbc
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (30 loc) · 848 Bytes
/
Copy pathrelease.yml
File metadata and controls
34 lines (30 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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@v4
- 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/[email protected]
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish to Production PyPI
if: github.event_name == 'release'
uses: pypa/[email protected]