-
-
Notifications
You must be signed in to change notification settings - Fork 393
50 lines (41 loc) · 1.29 KB
/
release.yml
File metadata and controls
50 lines (41 loc) · 1.29 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
50
name: Release
on:
push:
pull_request:
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
- run: uv build
- name: Verify wheel install
run: |
uv venv .venv-install-whl
source .venv-install-whl/bin/activate
uv pip install dist/*.whl
- name: Verify source install
run: |
uv venv .venv-install-tar
source .venv-install-tar/bin/activate
uv pip install dist/*.tar.gz
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
with:
name: dist
path: |
dist/*.tar.gz
dist/*.whl
- run: uvx twine check dist/*
- run: uvx pydistcheck --inspect dist/*
- run: uvx pyroma dist/*.tar.gz
- run: uvx check-wheel-contents dist/*.whl
- run: uvx check-manifest -v
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
run: uv publish --trusted-publishing always