diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 839d15f9d7..10d06ebb1b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,9 +7,6 @@ jobs: build_wheels37: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: @@ -27,7 +24,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.1 + python -m pip install cibuildwheel==2.16.1 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -44,16 +41,14 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci build_wheels38: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: @@ -71,7 +66,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.1 + python -m pip install cibuildwheel==2.16.1 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -88,16 +83,14 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci build_wheels39: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: @@ -115,7 +108,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.1 + python -m pip install cibuildwheel==2.16.1 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -132,16 +125,14 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci build_wheels310: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: @@ -159,7 +150,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.1 + python -m pip install cibuildwheel==2.16.1 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -176,16 +167,14 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci build_wheels311: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: @@ -203,7 +192,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.1 + python -m pip install cibuildwheel==2.16.1 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -220,16 +209,14 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci build_wheels312: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release - permissions: - id-token: write strategy: fail-fast: false matrix: @@ -247,7 +234,7 @@ jobs: platforms: all - name: Install cibuildwheel run: | - python -m pip install cibuildwheel==2.16.1 + python -m pip install cibuildwheel==2.16.1 twine - name: Build wheels run: | python -m cibuildwheel --output-dir wheelhouse @@ -264,7 +251,8 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ \ No newline at end of file + - name: Upload to PyPI + run: twine upload ./wheelhouse/*.whl + env: + TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} + TWINE_USERNAME: retworkx-ci \ No newline at end of file