From c90ea32a9741a67f5086645b4d57c7fa2434172a Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 26 Feb 2020 13:07:38 +1100 Subject: [PATCH] Hopefully take care of windows extension during release --- .github/workflows/go.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4e484da4..11231b12 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -185,14 +185,13 @@ jobs: run: | echo "::set-env name=VERSION::$(echo ${{ github.ref }} | sed 's@refs/[^/]*/v\?@@')" shell: bash - - name: debug + - name: Set name of executable extension (Windows) + if: matrix.goos == 'windows' run: | - ls - ls yinyo_${{ matrix.goos }}_${{ matrix.goarch }} - echo "::set-env name=BINARY::$(ls yinyo_${{ matrix.goos }}_${{ matrix.goarch }})" + echo "::set-env name=EXTENSION::.exe" - name: Go Release Binary uses: Shopify/upload-to-release@1.0.0 with: name: yinyo_${{ env.VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }} - path: yinyo_${{ matrix.goos }}_${{ matrix.goarch }}/${{ env.BINARY }} + path: yinyo_${{ matrix.goos }}_${{ matrix.goarch }}/yinyo${{ env.EXTENSION }} repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file