From 8c635339af04124eb1faf82bbcc8b5c12d16c890 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Mon, 20 Feb 2023 16:31:33 -0800 Subject: [PATCH] publish only on master --- .github/workflows/pypi.yaml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index c7ca1a02..84b642f5 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -1,17 +1,10 @@ name: ytld-sub PyPI on: push: - # Publish `master` as Docker `latest` image. + # publish only when pushed to master branches: - master - # Publish `v1.2.3` tags as releases. - tags: - - v* - - # Run tests for any PRs. - pull_request: - jobs: build-and-publish: name: build-and-publish @@ -32,13 +25,6 @@ jobs: run: | make wheel - - name: Publish distribution 📦 to Test PyPI - if: ${{ github.ref != 'refs/heads/master' }} - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_TEST_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ - - name: Publish distribution 📦 to PyPI if: ${{ github.ref == 'refs/heads/master' }} uses: pypa/gh-action-pypi-publish@release/v1