β¬οΈπ¨βπ» Update cda-tum/mqt-workflows action to v1.8 #58
This file contains 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: | ||
python-packaging: | ||
name: π Packaging | ||
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-packaging.yml@v1.8 | ||
Check failure on line 13 in .github/workflows/cd.yml
|
||
with: | ||
pure-python: true | ||
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.predictor | ||
permissions: | ||
id-token: write | ||
attestations: write | ||
contents: read | ||
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 |