-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.16 KB
/
release.yml
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
51
52
53
on:
release:
types:
- published
name: release
jobs:
build:
name: Build distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Build distributions
run: uv build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: distributions
path: dist/
publish:
name: Publish Python distributions to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pip-plugin-pep740
needs: [build]
permissions:
# Used to sign the release's artifacts with sigstore-python.
# Used to publish to PyPI with Trusted Publishing.
id-token: write
steps:
- name: Download distributions
uses: actions/download-artifact@v4
with:
name: distributions
path: dist/
- name: Publish distributions
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true