From 15ff6c0c7fd9cb7653a56d290847e63efa893ef4 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 9 Dec 2024 15:52:53 +0000 Subject: [PATCH] seperates PyPI and TestPyPI publishing rules --- .github/workflows/cd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0746db0..9d941e7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -65,7 +65,6 @@ jobs: permissions: id-token: write runs-on: ubuntu-latest - if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v4 @@ -78,3 +77,6 @@ jobs: # Remember to tell (test-)pypi about this repo before publishing # Remove this line to publish to PyPI repository-url: https://test.pypi.org/legacy/ + + - uses: pypa/gh-action-pypi-publish@release/v1 + if: github.event_name == 'release' && github.event.action == 'published'