From f0408992b29ddfe76abdf3a5d4b3dc15df6b45f1 Mon Sep 17 00:00:00 2001 From: Alessio Berti Date: Thu, 8 Aug 2024 12:33:02 +0200 Subject: [PATCH] Correct publishing only on tags pushed to the master branch. --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e4b05e50..bae63820 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,14 +2,13 @@ name: Deploy to PyPI on: push: - branches: - - master tags: - 'v*' jobs: deploy: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v4 - name: Set up Python