From 8f5189e6daadf475693193b8b5ee8eca95680b6f Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Wed, 3 Jan 2024 08:47:25 -0800 Subject: [PATCH] Upgrade to the v4 artifact actions again In 4.1, the "merge-multiple" feature was added to support this use case. --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd034a2..edf5b78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,8 +29,9 @@ jobs: CIBW_BUILD_VERBOSITY: 1 MAXMINDDB_REQUIRE_EXTENSION: 1 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: maxminddb-whl-${{ matrix.os }} path: ./wheelhouse/*.whl build_sdist: @@ -44,8 +45,9 @@ jobs: - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: maxminddb-sdist path: dist/*.tar.gz upload_pypi: @@ -56,9 +58,10 @@ jobs: id-token: write if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact + pattern: maxminddb-* path: dist + merge-multiple: true - uses: pypa/gh-action-pypi-publish@release/v1