-
-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (29 loc) · 775 Bytes
/
publish-pypi.yml
File metadata and controls
31 lines (29 loc) · 775 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
name: build and publish to PyPI
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: pypi
url: https://pypi.org/p/numtype
permissions:
id-token: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
python-version: "3.14"
enable-cache: false
- name: uv build
run: uv build
- name: publish to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0