forked from munich-quantum-toolkit/core
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.55 KB
/
cd.yml
File metadata and controls
52 lines (49 loc) · 1.55 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
name: CD 🚀
on:
release:
types: [published]
workflow_dispatch:
permissions:
attestations: write
contents: read
id-token: write
jobs:
# Builds the sdist and wheels on all supported platforms and uploads the resulting
# wheels as GitHub artifacts `dev-cibw-*` or `cibw-*`, depending on whether the
# workflow is triggered from a PR or a release, respectively.
python-packaging:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging.yml@v1.10
with:
# Runs to enable
enable-ubuntu2404: true
enable-ubuntu2404-arm: true
enable-macos13: true
enable-macos14: true
enable-windows2022: true
enable-windows11-arm: true
# Runs to disable
enable-ubuntu2204: false
enable-ubuntu2204-arm: false
enable-macos15: false
enable-windows2025: false
# Downloads the previously generated artifacts and deploys to PyPI on published releases.
deploy:
if: github.event_name == 'release' && github.event.action == 'published'
name: 🚀 Deploy to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mqt.core
needs: [python-packaging]
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true
- name: Generate artifact attestation for sdist and wheel(s)
uses: actions/attest-build-provenance@v2
with:
subject-path: "dist/*"
- uses: pypa/gh-action-pypi-publish@release/v1