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 13c5b9e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ jobs:
docker cp "$(docker create lauszus/socketsocketcan)":/socketsocketcan-wheel .
mkdir dist
cp socketsocketcan-wheel/socketsocketcan*.whl dist/
# Special characters are not allowed, so just use the Debian codename for the artifact name
name=$(echo -n "${{ matrix.docker_images }}" | cut -d ':' -f2)
echo "ARTIFACT_NAME=$name" >> $GITHUB_ENV
- name: Upload wheel as artifact
uses: actions/upload-artifact@v4
with:
name: socketsocketcan-${{ github.sha }}
name: socketsocketcan-armv7l-$ARTIFACT_NAME-${{ 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 +58,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 +79,10 @@ jobs:
- name: Upload sdist as artifact
uses: actions/upload-artifact@v4
with:
name: socketsocketcan-${{ github.sha }}
name: socketsocketcan-sdist-3.10-${{ github.sha }}
path: dist
retention-days: 1
if-no-files-found: error
release:
needs: [armv7l, amd64, sdist]
name: Release
Expand All @@ -85,8 +95,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 13c5b9e

Please sign in to comment.