From 21f1f9926ced342091355f2d476cb61c7d8d1971 Mon Sep 17 00:00:00 2001 From: mferrera Date: Tue, 9 Jan 2024 08:39:36 +0100 Subject: [PATCH] CI: Upload uniquely named artifacts This functionality seems to have changed with v4 where artifacts must now be given a unique name. --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 323a4c377..d46c6f874 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,9 +43,9 @@ jobs: run: twine check wheelhouse/* - uses: actions/upload-artifact@v4 - if: ${{ github.event_name == 'release' }} + if: ${{ github.event_name == 'release' && github.event.action == 'published' }} with: - name: cibw-sdist + name: cibw-${{ env.CIBW_BUILD }} path: wheelhouse/*.whl publish: @@ -54,7 +54,7 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' environment: name: pypi - url: https://pypi.org/p/xtgeo + url: https://pypi.org/project/xtgeo permissions: id-token: write