Skip to content

Commit

Permalink
Fix windows filename matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
adewes committed Jun 25, 2021
1 parent a9343d8 commit 2b9227b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,17 @@ jobs:
path: |
/tmp/go/bin/${{matrix.arch}}/*
- name: rename binaries for non-Linux platforms
if: ${{ matrix.arch != 'linux_amd64' }}
if: ${{ matrix.arch != 'linux_amd64' && matrix.arch != 'windows_amd64' }}
run: |
ls /tmp/go/bin
mv /tmp/go/bin/${{matrix.arch}}/eps /tmp/go/bin/${{matrix.arch}}/eps-${{matrix.arch}}
mv /tmp/go/bin/${{matrix.arch}}/sd /tmp/go/bin/${{matrix.arch}}/sd-${{matrix.arch}}
mv /tmp/go/bin/${{matrix.arch}}/proxy /tmp/go/bin/${{matrix.arch}}/proxy-${{matrix.arch}}
- name: rename binaries for non-Linux platforms
if: ${{ matrix.arch == 'windows_amd64' }}
run: |
mv /tmp/go/bin/${{matrix.arch}}/eps.exe /tmp/go/bin/${{matrix.arch}}/eps-${{matrix.arch}}.exe
mv /tmp/go/bin/${{matrix.arch}}/sd.exe /tmp/go/bin/${{matrix.arch}}/sd-${{matrix.arch}}.exe
mv /tmp/go/bin/${{matrix.arch}}/proxy.exe /tmp/go/bin/${{matrix.arch}}/proxy-${{matrix.arch}}.exe
- name: Upload binaries to release page
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 2b9227b

Please sign in to comment.