-
Notifications
You must be signed in to change notification settings - Fork 124
35 lines (27 loc) · 955 Bytes
/
pypi.yml
File metadata and controls
35 lines (27 loc) · 955 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
# This workflows will upload a Python Package using uv and twine when a release is created
name: pypi
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for trusted publishing
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for hatch-vcs to get version from git tags
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Setup Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --all-extras # Install all dependencies including dev
- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1