Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 authored Apr 21, 2024
1 parent 024f103 commit c5624c9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,24 @@ jobs:
mkdir "$dirname"
if [ "${{ matrix.os }}" = "windows-latest" ]; then
cp "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
echo "BIN=target/${{ matrix.target }}/release/$binary_name.exe" >> $GITHUB_ENV
else
cp "target/${{ matrix.target }}/release/$binary_name" "$dirname"
echo "BIN=target/${{ matrix.target }}/release/$binary_name" >> $GITHUB_ENV
fi
if [ "${{ matrix.os }}" = "windows-latest" ]; then
7z a "$dirname.zip" "$dirname"
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
rm -rd $dirname
cp "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname.exe"
echo "BIN=$dirname.exe" >> $GITHUB_ENV
else
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
rm -rd $dirname
cp "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
echo "BIN=$dirname" >> $GITHUB_ENV
fi
- name: Upload the binaries
Expand Down

0 comments on commit c5624c9

Please sign in to comment.