Skip to content

Commit

Permalink
Unique artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 28, 2023
1 parent ddebe16 commit b806718
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: python -m build --wheel
- uses: actions/upload-artifact@v4
with:
name: pip
name: pip-wheel-${{ matrix.python }}
path: dist/*
if-no-files-found: error
build-sdist:
Expand All @@ -50,11 +50,16 @@ jobs:
run: python -m build --sdist
- uses: actions/upload-artifact@v4
with:
name: pip
name: pip-sdist
path: dist/*
if-no-files-found: error
publish:
name: Publish to PyPi
strategy:
matrix:
artifact:
- 'wheel-3.11'
- 'sdist'
runs-on: ubuntu-latest
needs: [build-sdist, build-wheel]
if: github.repository == 'Eeems-Org/remarkable-update-fuse' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
Expand All @@ -68,8 +73,9 @@ jobs:
id: download
uses: actions/download-artifact@v4
with:
name: pip
name: pip-${{ matrix.artifact }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ${{ steps.download.outputs.download-path }}
skip-existing: true

0 comments on commit b806718

Please sign in to comment.