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