-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (79 loc) · 2.67 KB
/
release.yml
File metadata and controls
89 lines (79 loc) · 2.67 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Release
on: workflow_dispatch
jobs:
release-build:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
py-abi: ["cp310", "cp311", "cp312", "cp313"]
include:
# Python version to install on host
- py-abi: cp310
python-version: "3.10"
- py-abi: cp311
python-version: "3.11"
- py-abi: cp312
python-version: "3.12"
- py-abi: cp313
python-version: "3.13"
# OS name to ciwheelbuild platform name
- os: ubuntu-latest
platform-tag: manylinux_2_28_x86_64
build-target: "manylinux_x86_64"
- os: windows-latest
platform-tag: win_amd64
build-target: "win_amd64"
- os: macos-latest
platform-tag: macosx_11_0_arm64
build-target: "macosx_arm64"
uses: ./.github/workflows/build-wheels.yml
with:
os: ${{ matrix.os }}
build-target: ${{ matrix.py-abi }}-${{ matrix.build-target }}
python-version: ${{ matrix.python-version }}
platform-tag: ${{ matrix.platform-tag }}
upload-pypi:
name: Push runtime wheel on PyPi
needs: [release-build]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/slicer-layer-dm
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Download all wheel artifacts
uses: actions/download-artifact@v4
with:
path: ./wheelhouse
pattern: slicer_layer_dm-*
merge-multiple: true # Flattens them into one directory
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./wheelhouse
upload-pypi-sdk:
name: Push SDK wheel on PyPi
needs: [release-build]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/slicer-layer-dm-sdk
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- name: Download all wheel artifacts
uses: actions/download-artifact@v4
with:
path: ./wheelhouse
pattern: slicer_layer_dm_sdk-*
merge-multiple: true # Flattens them into one directory
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./wheelhouse