Skip to content

Commit

Permalink
Use .exe for windows executable (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmicHorrorDev authored Oct 22, 2023
1 parent 20b1459 commit d1fd7c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,17 @@ jobs:
run: |
$CARGO --version
$CARGO build --release --locked --target ${{ matrix.target }}
# Handle windows being an oddity
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo "BIN_NAME=sd.exe" >> $GITHUB_ENV
else
echo "BIN_NAME=sd" >> $GITHUB_ENV
fi
- name: Upload binaries to release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.target }}/release/sd
file: target/${{ matrix.target }}/release/${{ env.BIN_NAME }}
asset_name: sd-${{ env.SD_VERSION }}-${{ matrix.target }}
tag: ${{ github.ref }}

0 comments on commit d1fd7c6

Please sign in to comment.