Skip to content

Commit

Permalink
Rust: Try uploading artifacts from relative path, as custom zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jul 24, 2023
1 parent 82f2931 commit e8a7b65
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ jobs:
with:
path: artifacts

- name: Compress Artifacts
shell: bash
run: |
dir="artifacts" # Replace with your subdirectory
for subdir in "$dir"/*; do
if [ -d "$subdir" ]; then
base=$(basename "$subdir")
zip -r "$dir/$base.zip" "$subdir"
rm -r "$subdir"
fi
done
ls -A ./artifacts
- name: GitHub Release Artifacts
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit e8a7b65

Please sign in to comment.