From 10a9a36bb1327d2349f9e3502908a899b3f44958 Mon Sep 17 00:00:00 2001 From: zhukovgreen Date: Wed, 18 Oct 2023 15:11:40 +0200 Subject: [PATCH] ensure the make publish runs only on main branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 336fdfd..ef87226 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,7 @@ jobs: run: make publish if: | startsWith(github.ref, 'refs/tags/') && + github.ref == 'refs/heads/main' && matrix.python-version == '3.8' env: PYPI_UNAME: __token__