From 44e3a5f5908b5951b45227d9dc44cac02de15a52 Mon Sep 17 00:00:00 2001 From: Arjen Kroezen Date: Fri, 8 Dec 2023 16:23:34 +0100 Subject: [PATCH] ci: disable package publishing on non-main branch --- .github/workflows/ci-cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 55907d2c..d2ac7f1c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -70,6 +70,7 @@ jobs: poetry version 0.0.0.alpha${{ github.run_number}} poetry build - name: Publish package distributions to PyPI + if: github.ref == 'refs/heads/main' uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: ./dist \ No newline at end of file