Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mm9942 authored Jan 22, 2024
1 parent 6302d74 commit d1f0b8e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- name: Run tests
run: cargo test --verbose

- name: Rename binary for Windows
if: matrix.os == 'windows-latest'
run: mv ./target/release/crypt_guard ./target/release/crypt_guard.exe

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -43,6 +47,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/release/crypt_guard
asset_name: your_binary_name-${{ matrix.os }}
asset_path: ./target/release/crypt_guard${{ matrix.os == 'windows-latest' && '.exe' || '' }}
asset_name: crypt_guard-${{ matrix.os }}${{ matrix.os == 'windows-latest' && '.exe' || '' }}
asset_content_type: application/octet-stream

0 comments on commit d1f0b8e

Please sign in to comment.