forked from rordenlab/dcm2niix
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.13 KB
/
release.yml
File metadata and controls
37 lines (37 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release
on: {push: {branches: [development], tags: [v*.*.*]}}
jobs:
wheels:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0, submodules: false}
- uses: pypa/cibuildwheel@2.x
with: {output-dir: dist}
env: {CIBW_ARCHS: auto64, CIBW_SKIP: pp*} # skip 32bit & PyPy
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./dist/*.whl
pypi:
needs: wheels
permissions: {id-token: write}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0, submodules: false}
- uses: actions/setup-python@v5
with: {python-version: '3.x'}
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true
- uses: casperdcl/deploy-pypi@v2
with:
build: -s
upload: ${{ startsWith(github.ref, 'refs/tags/v') }}