Skip to content

Commit

Permalink
hopefully fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Oct 19, 2024
1 parent 08fb43a commit 5ec1068
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,15 @@ jobs:
working-directory: artifacts
run: |
mkdir ../out
for i in */*/release/$CARGO_BIN_NAME*; do
mv "$i" "../out/$(sed -E "s/([^/]+)\/[^/]+\/release\/($CARGO_BIN_NAME)/\2-\1/" <<< "$i")"
for bin in $CARGO_BIN_NAME; do
for i in */*/release/$bin{,.exe}; do
if [ -f "$i" ]; do
mv "$i" "../out/$(sed -E "s/([^/]+)\/[^/]+\/release\/$bin/\1/" <<< "$i")"
fi
done
done
ls -R ../out
- name: Release
uses: softprops/action-gh-release@v1
with:
files: out/*
files: out/*

0 comments on commit 5ec1068

Please sign in to comment.