From 3121f99a8a3b4f2235311992da24d1f291c913b4 Mon Sep 17 00:00:00 2001 From: burgholzer Date: Mon, 28 Aug 2023 13:51:01 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20move=20publishing=20out=20?= =?UTF-8?q?of=20reusable=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: burgholzer --- .github/workflows/cd.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0f295ed8..0bc01b99 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -8,5 +8,20 @@ jobs: python-packaging: name: 🐍 Packaging uses: cda-tum/mqt-core/.github/workflows/reusable-python-packaging.yml@main - with: - package-name: mqt.ddsim + + 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.ddsim + permissions: + id-token: write + needs: [python-packaging] + steps: + - uses: actions/download-artifact@v3 + with: + name: artifact + path: dist + - uses: pypa/gh-action-pypi-publish@release/v1