Skip to content

Commit

Permalink
Give executables unique names before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kuniss committed Dec 27, 2023
1 parent 4ebccca commit 2467e84
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- os: windows-latest
exe: "gamma.exe"
rename: rename gamma.exe
exe: gamma.windows-amd64.exe
- os: ubuntu-latest
exe: "./gamma"
rename: mv ./gamma
exe: gamma.linux-amd64
- os: macOS-latest
exe: "./gamma"
rename: mv ./gamma
exe: gamma.macos-amd64

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -52,7 +55,10 @@ jobs:
run: |
dub build
- name: Upload release binaries
- name: Rename binary
run: ${{ matrix.rename }} ${{ matrix.exe }}

- name: Upload release binary
uses: AButler/upload-release-assets@v3.0
with:
files: ${{ matrix.exe }}
Expand Down

0 comments on commit 2467e84

Please sign in to comment.