Skip to content

Commit

Permalink
Hopefully take care of windows extension during release
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Feb 26, 2020
1 parent 5c6c385 commit c90ea32
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}

0 comments on commit c90ea32

Please sign in to comment.