Skip to content

Commit 742394b

Browse files
authored
👷 PyPI trusted publishing workflow (#383)
2 parents f500a56 + ceaf551 commit 742394b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build a new release, and publish to PyPI
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
pypi-publish:
10+
name: Publish release to PyPI
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 5
13+
environment:
14+
name: pypi
15+
url: https://pypi.org/p/scipy-stubs
16+
permissions:
17+
id-token: write
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: setup uv
21+
uses: astral-sh/setup-uv@v5
22+
with:
23+
python-version: "3.13"
24+
- name: uv build
25+
run: uv build
26+
- name: publish to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)