patx/mrhttp-asgi

FIX: github actions v4

Commit 1ef3ded · MarkReedZ · 2025-02-26T09:03:44-08:00

Changeset
1ef3ded10def874eaae2129042f4aba1ff24ed73
Parents
e4846584530e7826e37d5be9a4b5e2c4b8d179a4

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml
index e2891fd..ce337ba 100644
--- a/.github/workflows/build_wheels.yml
+++ b/.github/workflows/build_wheels.yml
@@ -1,6 +1,8 @@
 name: Build and upload to PyPI
 
-on: push
+on:
+    push:
+    workflow_dispatch:
 
 jobs:
   build_wheels:
@@ -21,7 +23,8 @@ jobs:
 
       - uses: actions/upload-artifact@v3
         with:
-          path: ./wheelhouse/*.whl
+          name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
+          path: wheelhouse/*.whl
 
   build_sdist:
     name: Build source distribution
@@ -34,6 +37,7 @@ jobs:
 
       - uses: actions/upload-artifact@v3
         with:
+          name: cibw-sdist
           path: dist/*.tar.gz
 
   upload_pypi:
@@ -44,15 +48,13 @@ jobs:
       url: https://pypi.org/p/mrhttp 
     permissions:
       id-token: write  # IMPORTANT: mandatory for trusted publishing
-    if: startsWith(github.ref, 'refs/tags/')  # only publish to PyPI on tag pushes
+    if: startsWith(github.ref, 'refs/tags/v')  # only publish to PyPI on tag pushes
     steps:
-      - uses: actions/download-artifact@v3
+      - uses: actions/download-artifact@v4
         with:
-          # unpacks default artifact into dist/
-          # if `name: artifact` is omitted, the action will create extra parent dir
-          name: artifact
+          pattern: cibw-*
           path: dist
+          merge-multiple: true
+
 
       - uses: pypa/gh-action-pypi-publish@release/v1
-        # with:
-          # repository-url: https://test.pypi.org/legacy/