From d40fc9e0cffb90140c8e037266b11159169dcbd8 Mon Sep 17 00:00:00 2001 From: John Pearson Date: Mon, 15 Jan 2024 14:47:22 -0500 Subject: [PATCH] make sure pypi only runs on a tag of main (release) --- .github/workflows/pypi.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index 19b92eaf..70a200f3 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -2,11 +2,9 @@ name: Publish Python 🐍 distribution 📦 to PyPI on: - push: + release: tags: - 'v[0-9]+.[0-9]+.[0-9]+' - branches: - - 'main' jobs: build: