From 0f2fde2a42a7a22e1f7affff00231a47df3cc143 Mon Sep 17 00:00:00 2001 From: Moritz Lerch Date: Mon, 31 Jul 2023 00:27:13 +0200 Subject: [PATCH] ci: fix build and pypi publish --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a499d45..e20e708 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,9 +20,13 @@ jobs: - name: Build source and wheel distributions run: | - python -m pip install --upgrade build twine + virtualenv /tmp/env + source /tmp/env/bin/activate + XDG_CACHE_HOME=/cache pip3 install -U pip wheel setuptools twine check-manifest build python -m build + check-manifest . twine check --strict dist/* + - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@ae63f3323ae7b31c08f2805b18056cbf132ce478 with: