-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (40 loc) · 1.02 KB
/
publish.yml
File metadata and controls
49 lines (40 loc) · 1.02 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Upload to PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
name: 📦 Publish to 'pypi'
runs-on: ubuntu-latest
environment:
name: 'pypi_publish'
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
python-version: '3.13'
enable-cache: true
- name: Build with uv
run: |
uv sync --locked
uv build
- name: Publish
run: |
uv publish --trusted-publishing always
- name: Generate release email
run: |
uv run python bin/prepare_release_email.py > release-email.txt
- name: Upload release email
uses: actions/upload-artifact@v7
with:
name: release-email
path: release-email.txt