Skip to content

Commit

Permalink
👷 PyPI trusted publishing workflow (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham authored Dec 29, 2024
2 parents f500a56 + ceaf551 commit 742394b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build a new release, and publish to PyPI

on:
workflow_dispatch:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: pypi
url: https://pypi.org/p/scipy-stubs
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: uv build
run: uv build
- name: publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 742394b

Please sign in to comment.