Skip to content

Commit

Permalink
better naming for release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Sep 27, 2024
1 parent 43fb0ad commit d00c039
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/package-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ jobs:
for artifact in target/debian/**/*; do
name="$(basename "$artifact")"
directory="$(basename "$(dirname "$artifact")")"
distro="$(echo "$directory" | cut -d _ -f 1)"
release="$(echo "$directory" | cut -d _ -f 2)"
mv "$artifact" "target/artifacts/${release}_${name}"
mv "$artifact" "target/artifacts/${distro}_${release}_${name}"
done
gh release upload "${{ github.event.release.tag_name }}" target/artifacts/*
5 changes: 3 additions & 2 deletions .github/workflows/package-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ jobs:
for artifact in target/rpm/**/*; do
name="$(basename "$artifact")"
directory="$(basename "$(dirname "$artifact")")"
release="$(echo "$directory" | cut -d _ -f 2)"
distro="$(echo "$directory" | cut -d _ -f 1)"
version="$(echo "$directory" | cut -d _ -f 2)"
mv "$artifact" "target/artifacts/${release}_${name}"
mv "$artifact" "target/artifacts/${distro}_${version}_${name}"
done
echo gh release upload "${{ github.event.release.tag_name }}" target/artifacts/*

0 comments on commit d00c039

Please sign in to comment.