From 55e2f7452c079f55e9397ac66c270dd28eddf404 Mon Sep 17 00:00:00 2001 From: shadowdevfr <33694505+shadowdevfr@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:47:06 +0200 Subject: [PATCH] Fix actions --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92d99f2..3fd4fc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,9 +26,6 @@ jobs: sudo apt install -y libasound2-dev libgl1-mesa-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev - name: Build for ${{ matrix.os}} run: go build -o ./bin/fishsim-${{matrix.os}}-${{ github.event.release.tag_name }} . - - name: Add .exe to windows binary - if: runner.os == 'Windows' - run: mv ./bin/fishsim-windows-${{ github.event.release.tag_name }} ./bin/fishsim-windows-${{ github.event.release.tag_name }}.exe - name: Upload if: runner.os != 'Windows' uses: actions/upload-release-asset@v1.0.1 @@ -36,7 +33,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./bin + asset_path: ./bin/fishsim-${{ matrix.os }}-${{ github.event.release.tag_name }} asset_name: fishsim-${{ matrix.os }}-${{ github.event.release.tag_name }} asset_content_type: binary/octet-stream @@ -47,6 +44,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./bin/fishsim-windows-${{ github.event.release.tag_name }}.exe - asset_name: fishsim-windows-${{ github.event.release.tag_name }}.exe + asset_path: ./bin/fishsim-${{ matrix.os }}-${{ github.event.release.tag_name }}.exe + asset_name: fishsim-${{ matrix.os }}-${{ github.event.release.tag_name }}.exe asset_content_type: binary/octet-stream