Skip to content

Commit

Permalink
FIX download artifact to target folder
Browse files Browse the repository at this point in the history
  • Loading branch information
karminski committed Oct 5, 2024
1 parent 4821f42 commit c261198
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,21 @@ jobs:

- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts

- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for asset in core-to-core-latency-plus-*; do
gh release upload ${{ github.ref_name }} $asset --clobber
cd ./artifacts
for asset_dir in */; do
asset_file=$(find "$asset_dir" -type f)
if [ -f "$asset_file" ]; then
gh release upload ${{ github.ref_name }} "$asset_file" --clobber
else
echo "Warning: No file found in $asset_dir"
fi
done
publish-crates:
Expand Down

0 comments on commit c261198

Please sign in to comment.