From d1fd7c684f3f84ec03dd8744704e9412a163198d Mon Sep 17 00:00:00 2001 From: CosmicHorror Date: Sat, 21 Oct 2023 20:31:33 -0600 Subject: Use .exe for windows executable (#253) --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2a34b47..3078abe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/upload-release-action@2.7.0 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 }} -- cgit v1.2.3