From c6678b49d2542596cb635ab5b3ac811f37e4791d Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Fri, 24 Jan 2025 16:37:12 +0000 Subject: [PATCH] TEST: add temporary pull request trigger; comment out actual uploads and sdist build --- .github/workflows/release-to-pypi.yml | 55 ++++++++++++++------------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release-to-pypi.yml b/.github/workflows/release-to-pypi.yml index b799b61b9..0f2590e9a 100644 --- a/.github/workflows/release-to-pypi.yml +++ b/.github/workflows/release-to-pypi.yml @@ -1,6 +1,7 @@ name: Release to PyPI on: + pull_request: workflow_dispatch: release: types: [published] @@ -29,37 +30,37 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.22.0 - - name: Check and upload wheels - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python -m twine check --strict wheelhouse/*.whl - python -m twine upload wheelhouse/*.whl + # - name: Check and upload wheels + # env: + # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + # run: | + # python -m twine check --strict wheelhouse/*.whl + # python -m twine upload wheelhouse/*.whl - build-sdist: - runs-on: ubuntu-latest + # build-sdist: + # runs-on: ubuntu-latest - steps: + # steps: - - name: Check out the release commit - uses: actions/checkout@v4 + # - name: Check out the release commit + # uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.10' + # - name: Set up Python + # uses: actions/setup-python@v5 + # with: + # python-version: '3.10' - - name: Install Python packages needed for sdist build and upload - run: python -m pip install build twine + # - name: Install Python packages needed for sdist build and upload + # run: python -m pip install build twine - - name: Build sdist - run: python -m build --sdist + # - name: Build sdist + # run: python -m build --sdist - - name: Publish sdist to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python -m twine check --strict dist/* - python -m twine upload dist/* + # - name: Publish sdist to PyPI + # env: + # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + # run: | + # python -m twine check --strict dist/* + # python -m twine upload dist/*