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 18, 2024
1 parent 302d60f commit a104cac
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,17 @@ jobs:
command: build
args: --verbose --release --target ${{ matrix.target }}

- name: Build archive
- name: Set Asset
shell: bash
run: |
binary_name="markdown-oxide"
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
mkdir "$dirname"
if [ "${{ matrix.os }}" = "windows-latest" ]; then
mv "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
echo "ASSET=target/${{ matrix.target }}/release/$binary_name.exe" >> $GITHUB_ENV
else
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
fi
if [ "${{ matrix.os }}" = "windows-latest" ]; then
7z a "$dirname.zip" "$dirname"
echo "ASSET=$dirname.zip" >> $GITHUB_ENV
else
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
echo "ASSET=target/${{ matrix.target }}/release/$binary_name" >> $GITHUB_ENV
fi
- name: Upload the binaries
Expand Down

0 comments on commit a104cac

Please sign in to comment.