Skip to content

β¬†οΈπŸ‘¨β€πŸ’» Update munich-quantum-toolkit/workflows action to v2.1.1 #177

β¬†οΈπŸ‘¨β€πŸ’» Update munich-quantum-toolkit/workflows action to v2.1.1

β¬†οΈπŸ‘¨β€πŸ’» Update munich-quantum-toolkit/workflows action to v2.1.1 #177

Workflow file for this run

name: CD
on:
release:
types: [published]
workflow_dispatch:
pull_request:
paths:
- .github/workflows/cd.yml
jobs:
build-sdist:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@b17932e07095e11c8f8c0d74298bbcde43f77a15 # v2.1.1
# Builds wheels on all supported platforms using cibuildwheel.
# The wheels are uploaded as GitHub artifacts `dev-cibw-*` or `cibw-*`, depending on whether
# the workflow is triggered from a PR or a release, respectively.
build-wheel:
name: 🐍 Packaging
strategy:
fail-fast: false
matrix:
runs-on:
[
ubuntu-24.04,
ubuntu-24.04-arm,
macos-26,
macos-26-intel,
windows-2022,
windows-11-arm,
]
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@b17932e07095e11c8f8c0d74298bbcde43f77a15 # v2.1.1
with:
runs-on: ${{ matrix.runs-on }}
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.debugger
permissions:
id-token: write
attestations: write
contents: read
needs: [build-sdist, build-wheel]
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: cibw-*
path: dist
merge-multiple: true
- name: Generate artifact attestation for sdist and wheel(s)
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
with:
subject-path: dist/*
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0