From 66057961368a53eec8e2ca72f2a5ee932fa98722 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sun, 9 Feb 2025 16:14:59 -0800 Subject: [PATCH] release assets to include os and arch in name --- .github/workflows/build-and-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index c6f1ca8..d04a96c 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -21,12 +21,12 @@ jobs: run: | swift build -c release --arch ${{ matrix.arch }} mkdir -p artifacts/macos-${{ matrix.arch }} - cp .build/release/fishee artifacts/macos-${{ matrix.arch }}/ + cp .build/release/fishee artifacts/macos-${{ matrix.arch }}/fishee-macos-${{ matrix.arch }}-${{ github.event.release.tag_name }} - name: Upload macOS artifacts as release assets uses: softprops/action-gh-release@v2 with: - files: artifacts/macos-${{ matrix.arch }}/fishee + files: artifacts/macos-${{ matrix.arch }}/fishee-macos-${{ matrix.arch }}-${{ github.event.release.tag_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -43,11 +43,11 @@ jobs: run: | swift build -c release mkdir -p artifacts/linux - cp .build/release/fishee artifacts/linux/ + cp .build/release/fishee artifacts/linux/fishee-linux-${{ github.event.release.tag_name }} - name: Upload Linux artifacts as release assets uses: softprops/action-gh-release@v2 with: - files: artifacts/linux/fishee + files: artifacts/linux/fishee-linux-${{ github.event.release.tag_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}