Skip to content

Commit

Permalink
update the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Nov 12, 2024
1 parent 224487f commit 76414e2
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,17 @@ jobs:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/

- name: List directory contents
run: ls -la target/${{ matrix.target }}/release/

- name: Upload release asset for macOS/Linux
if: matrix.target != 'x86_64-pc-windows-gnu'
uses: softprops/action-gh-release@v1
with:
files: target/${{ matrix.target }}/release/affected
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Zip release artifact
run: |
if [ "${{ matrix.target }}" = "x86_64-pc-windows-gnu" ]; then
zip -j target/${{ matrix.target }}/release/affected-${{ matrix.target }}.zip target/${{ matrix.target }}/release/affected.exe;
else
zip -j target/${{ matrix.target }}/release/affected-${{ matrix.target }}.zip target/${{ matrix.target }}/release/affected;
fi
- name: Upload release asset for Windows
if: matrix.target == 'x86_64-pc-windows-gnu'
- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
files: target/${{ matrix.target }}/release/affected.exe
files: target/${{ matrix.target }}/release/affected-${{ matrix.target }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 76414e2

Please sign in to comment.