Skip to content

Commit

Permalink
fix upload releases in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RythenGlyth committed Sep 10, 2024
1 parent b91e4af commit 30bcdf1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
with:
go-version: 1.23.1
- name: Build
run: go build -o masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.os == 'windows' && '.exe' || '' }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -o masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
- name: Upload to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.os == 'windows' && '.exe' || '' }}
asset_name: masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.os == 'windows' && '.exe' || '' }}
asset_path: ./masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
asset_name: masterclass-dl-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
asset_content_type: application/octet-stream

0 comments on commit 30bcdf1

Please sign in to comment.