diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e7b204b..e921e6f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,16 +1,17 @@ name: Publish to PyPI on: - push: - tags: - - "v*" + pull_request: + branches: + - main + - master permissions: contents: write jobs: build-n-publish: - if: github.event.base_ref == 'refs/heads/main' || github.event.base_ref == 'refs/heads/master' + # if: github.event.base_ref == 'refs/heads/main' || github.event.base_ref == 'refs/heads/master' name: Publish to PyPI runs-on: ubuntu-latest @@ -41,11 +42,11 @@ jobs: python -m pip install dist/*.gz python -c "import stepcount; print(stepcount.__version__)" - - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository-url: https://test.pypi.org/legacy/ + # - name: Publish distribution 📦 to Test PyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # password: ${{ secrets.TEST_PYPI_API_TOKEN }} + # repository-url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags')