⬆️🪝 Update patch updates #146
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@99170045e26c2564e9573174b573310e211fca72 # v1.17.10 | |
| # 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-15-intel, | |
| macos-14, | |
| windows-2022, | |
| windows-11-arm, | |
| ] | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@99170045e26c2564e9573174b573310e211fca72 # v1.17.10 | |
| 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@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | |
| with: | |
| pattern: cibw-* | |
| path: dist | |
| merge-multiple: true | |
| - name: Generate artifact attestation for sdist and wheel(s) | |
| uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0 | |
| with: | |
| subject-path: dist/* | |
| - uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 |