Skip to content

Commit 00070a4

Browse files
authored
Merge pull request #8 from OpenPTV/copilot/add-github-action-submit-binaries
Add GitHub Release publishing of binary wheels via cibuildwheel
2 parents b8fd93a + 017deb9 commit 00070a4

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: build-wheels
33
on:
44
push:
55
branches: ["main", "master"]
6+
tags: ["v*"]
67
pull_request:
78
workflow_dispatch:
89

@@ -41,3 +42,23 @@ jobs:
4142
with:
4243
name: wheels-${{ matrix.os }}
4344
path: wheelhouse/*.whl
45+
46+
release:
47+
name: Create GitHub Release
48+
needs: build
49+
runs-on: ubuntu-latest
50+
if: startsWith(github.ref, 'refs/tags/v')
51+
permissions:
52+
contents: write
53+
steps:
54+
- name: Download all wheels
55+
uses: actions/download-artifact@v7
56+
with:
57+
pattern: wheels-*
58+
path: wheelhouse
59+
merge-multiple: true
60+
61+
- name: Publish GitHub Release
62+
uses: softprops/action-gh-release@v2
63+
with:
64+
files: wheelhouse/*.whl

0 commit comments

Comments
 (0)