Skip to content

Commit

Permalink
fix: properly rename artifact if only 1 part
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschl committed Nov 8, 2024
1 parent 269f965 commit 75f5999
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ jobs:
cd ./fbw-a380x/out/
rm -rf build-modules
7z a -t7z -m0=lzma2 -mx=7 -v2047m ../../${{ env.BUILD_DIR_NAME }}/${{ env.STANDALONE_ZIP_NAME }} ./flybywire-aircraft-a380-842/
if [ "$(ls -1 ./${{ env.BUILD_DIR_NAME }} | wc -l)" -eq 1 ]; then
mv ./${{ env.BUILD_DIR_NAME }}/${{ env.STANDALONE_ZIP_NAME }}.001 ./${{ env.BUILD_DIR_NAME }}/${{ env.STANDALONE_ZIP_NAME }} # Only applicable if split in 1 part!
fi
cd ../../
df -h
- name: Upload release assets
Expand Down

0 comments on commit 75f5999

Please sign in to comment.