From 30bcdf1e90965a44d155e31120e2d00254e7f3cb Mon Sep 17 00:00:00 2001 From: RythenGlyth Date: Tue, 10 Sep 2024 14:09:35 +0200 Subject: [PATCH] fix upload releases in workflow --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51d716c..408e573 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file