Skip to content

Commit

Permalink
CI: Replace slashes with dashes in NAME
Browse files Browse the repository at this point in the history
Prevents the artifacts from being outputted in random subdirectories
  • Loading branch information
dimtpap committed Jan 23, 2024
1 parent d4bcf9d commit 2940c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
*tags*) NAME=coppwr-$GITHUB_REF_NAME ;;
*) NAME=coppwr-$GITHUB_REF_NAME-$GITHUB_SHA ;;
esac
NAME="${NAME//\//-}"
mkdir out/
cargo deb -v --no-build --output out/"$NAME".deb
cargo generate-rpm -o out/"$NAME".rpm
Expand All @@ -126,4 +127,4 @@ jobs:
with:
name: coppwr-vendor
path: |
out/*-vendor.tar.gz
out/*-vendor.tar.gz

0 comments on commit 2940c1c

Please sign in to comment.