Skip to content

Commit

Permalink
Give each artifact a unique name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauszus committed Nov 7, 2024
1 parent 3cfeb6e commit f4d5a1d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
name: socketsocketcan-${{ github.sha }}
name: socketsocketcan-${{ matrix.docker_images }}-${{ github.sha }}
path: dist
retention-days: 1
if-no-files-found: error
amd64:
name: Build amd64 wheels
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -52,8 +54,10 @@ jobs:
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
name: socketsocketcan-${{ github.sha }}
name: socketsocketcan-x86-${{ matrix.python-version }}-${{ github.sha }}
path: dist
retention-days: 1
if-no-files-found: error
sdist:
name: Build sdist
runs-on: ubuntu-24.04
Expand All @@ -71,8 +75,10 @@ jobs:
- name: Upload sdist as artifact
uses: actions/upload-artifact@v4
with:
name: socketsocketcan-${{ github.sha }}
name: socketsocketcan-sdist-${{ github.sha }}
path: dist
retention-days: 1
if-no-files-found: error
release:
needs: [armv7l, amd64, sdist]
name: Release
Expand All @@ -85,8 +91,9 @@ jobs:
python-version: '3.10'
- uses: actions/download-artifact@v4
with:
name: socketsocketcan-${{ github.sha }}
pattern: socketsocketcan-*-*-${{ github.sha }}
path: socketsocketcan
merge-multiple: true
- name: Publish to private PyPI server
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down

0 comments on commit f4d5a1d

Please sign in to comment.