From 2a3f4a0ea838cee307dba722c185be6f3173e24b Mon Sep 17 00:00:00 2001 From: Mic Neale Date: Sun, 25 Aug 2024 11:21:39 +1000 Subject: [PATCH 1/2] conditionally publish only when config changes --- .github/workflows/pypi_release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml index fc407c7de..88c3a55b6 100644 --- a/.github/workflows/pypi_release.yaml +++ b/.github/workflows/pypi_release.yaml @@ -6,6 +6,8 @@ on: - main tags: - 'v*' + paths: + - 'pyproject.toml' jobs: pypi_release: From 7df1e44b997f5b0b506618d64760f2c8395e50a3 Mon Sep 17 00:00:00 2001 From: Mic Neale Date: Sun, 25 Aug 2024 13:55:45 +1000 Subject: [PATCH 2/2] only on tags --- .github/workflows/pypi_release.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/pypi_release.yaml b/.github/workflows/pypi_release.yaml index 88c3a55b6..d47641db5 100644 --- a/.github/workflows/pypi_release.yaml +++ b/.github/workflows/pypi_release.yaml @@ -2,12 +2,8 @@ name: PYPI Release on: push: - branches: - - main tags: - 'v*' - paths: - - 'pyproject.toml' jobs: pypi_release: