From 26dfad29df673ccb19564c8b2e370e761ab341cd Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 23 Dec 2023 04:44:58 -0500 Subject: [PATCH 1/2] ci: Update to v4 of artifacts actions --- .github/workflows/cibuildwheel.yml | 12 ++++++------ .github/workflows/tests.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 23c05a7629d0..bf292d354c25 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -69,9 +69,9 @@ jobs: run: twine check dist/* - name: Upload sdist result - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: sdist + name: cibw-sdist path: dist/*.tar.gz if-no-files-found: error @@ -140,9 +140,9 @@ jobs: platforms: arm64 - name: Download sdist - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: sdist + name: cibw-sdist path: dist/ - name: Build wheels for CPython 3.12 @@ -186,8 +186,8 @@ jobs: CIBW_ARCHS: ${{ matrix.cibw_archs }} if: matrix.cibw_archs != 'aarch64' - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: wheels + name: cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }} path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1ffa9c7524a5..2e40b29cc449 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -339,7 +339,7 @@ jobs: with: name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }}" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: failure() with: name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }} result images" From 4b9b43fe15654274b4727ee1a3cc53f3bad125dd Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 23 Dec 2023 04:55:51 -0500 Subject: [PATCH 2/2] ci: Add the release steps to publish to PyPI --- .github/workflows/cibuildwheel.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index bf292d354c25..0dc2ef1f49cb 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -191,3 +191,25 @@ jobs: name: cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }} path: ./wheelhouse/*.whl if-no-files-found: error + + publish: + if: github.event_name == 'release' && github.event.action == 'published' + name: Upload release to PyPI + needs: [build_sdist, build_wheels] + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - name: Download packages + uses: actions/download-artifact@v4 + with: + pattern: cibw-* + path: dist + merge-multiple: true + + - name: Print out packages + run: ls dist + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy