Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowdevfr committed Sep 17, 2024
1 parent 3753ad6 commit 55e2f74
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@ 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
env:
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

Expand All @@ -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

0 comments on commit 55e2f74

Please sign in to comment.