From ceaf551e57eab0ad9312d822be0e55469705bc14 Mon Sep 17 00:00:00 2001 From: jorenham Date: Sun, 29 Dec 2024 14:23:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20add=20a=20build=20&=20publish=20?= =?UTF-8?q?(to=20PyPI)=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-pypi.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish-pypi.yml diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml new file mode 100644 index 00000000..9ad7235f --- /dev/null +++ b/.github/workflows/publish-pypi.yml @@ -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