Skip to content

Commit

Permalink
CI: Upload uniquely named artifacts
Browse files Browse the repository at this point in the history
This functionality seems to have changed with v4 where artifacts must
now be given a unique name.
  • Loading branch information
mferrera committed Jan 9, 2024
1 parent cb3c07c commit 21f1f99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 21f1f99

Please sign in to comment.