-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 694 Bytes
/
Copy pathrelease.yml
File metadata and controls
30 lines (30 loc) · 694 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
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
pypi-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v7
- run: uvx --from build pyproject-build --sdist --wheel
- uses: actions/upload-artifact@v7
with:
name: release-dists
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- pypi-build
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
name: release-dists
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1