Skip to content

Commit d9dfacf

Browse files
committed
Test release
1 parent f62d699 commit d9dfacf

File tree

1 file changed

+3
-55
lines changed

1 file changed

+3
-55
lines changed

.github/workflows/make_release.yml

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,11 @@
11
name: Build and upload to PyPI
22

33
on:
4-
release:
5-
types:
6-
- published
7-
4+
push:
5+
branches:
6+
- "*"
87

98
jobs:
10-
build_wheels:
11-
name: Build wheels for ${{ matrix.os }}
12-
runs-on: ${{ matrix.runs-on }}
13-
strategy:
14-
matrix:
15-
include:
16-
- os: linux-intel
17-
runs-on: ubuntu-latest
18-
- os: linux-arm
19-
runs-on: ubuntu-24.04-arm
20-
- os: windows-intel
21-
runs-on: windows-latest
22-
- os: windows-arm
23-
runs-on: windows-11-arm
24-
- os: macos-intel
25-
runs-on: macos-15-intel
26-
- os: macos-arm
27-
runs-on: macos-latest
28-
29-
steps:
30-
- uses: actions/checkout@v4
31-
with:
32-
submodules: true
33-
34-
- name: Build wheels
35-
uses: pypa/cibuildwheel@v3.2.0
36-
env:
37-
CIBW_PLATFORM: ${{ matrix.platform || 'auto' }}
38-
39-
- uses: actions/upload-artifact@v4
40-
with:
41-
name: cibw-wheels-${{ matrix.os }}-${{ matrix.platform}}-${{ strategy.job-index }}
42-
path: ./wheelhouse/*.whl
43-
44-
459
build_sdist:
4610
name: Build source distribution
4711
runs-on: ubuntu-latest
@@ -60,19 +24,3 @@ jobs:
6024
path: dist/*.tar.gz
6125
retention-days: 1
6226
name: cibw-sdist
63-
64-
upload_pypi:
65-
needs: [build_wheels, build_sdist]
66-
runs-on: ubuntu-latest
67-
environment: release
68-
permissions:
69-
id-token: write
70-
if: github.event_name == 'release' && github.event.action == 'published'
71-
steps:
72-
- uses: actions/download-artifact@v4
73-
with:
74-
pattern: cibw-*
75-
path: dist
76-
merge-multiple: true
77-
78-
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)