-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (27 loc) · 861 Bytes
/
Copy pathpython-publish.yaml
File metadata and controls
35 lines (27 loc) · 861 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
35
name: Upload Python Package
on:
push:
tags:
- "v?*.*.*"
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: "0.12.2"
- name: Build
run: uv build
- name: Smoke test (wheel)
run: uv run --isolated --no-project --with dist/*.whl python -c "import rivian; assert rivian.__version__ != '0.0.0'"
- name: Smoke test (source distribution)
run: uv run --isolated --no-project --with dist/*.tar.gz python -c "import rivian; assert rivian.__version__ != '0.0.0'"
- name: Publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish