Skip to content

Commit

Permalink
github: Update file search depth in release workflow
Browse files Browse the repository at this point in the history
- Modify find command to limit search to top-level of build directory
- Ensure only root-level .pdf, .zip, and .bin files are copied

Signed-off-by: Huang Rui <vowstar@gmail.com>
  • Loading branch information
vowstar committed Feb 29, 2024
1 parent 85736c6 commit eb32912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
pushd ${{github.workspace}}/$DIR
cmake -B ./build -G Ninja
cmake --build ./build
find ./build -name \*.pdf -exec cp {} ${{github.workspace}}/ \;
find ./build -name \*.zip -exec cp {} ${{github.workspace}}/ \;
find ./build -name \*.bin -exec cp {} ${{github.workspace}}/ \;
find ./build -maxdepth 1 -name "*.pdf" -exec cp {} ${{github.workspace}}/ \;
find ./build -maxdepth 1 -name "*.zip" -exec cp {} ${{github.workspace}}/ \;
find ./build -maxdepth 1 -name "*.bin" -exec cp {} ${{github.workspace}}/ \;
popd
done
- name: Create Release
Expand Down

0 comments on commit eb32912

Please sign in to comment.