diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 375e5e3..24d531f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file