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 105b46d commit 6302d74
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,30 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Build
run: cargo build --verbose
run: cargo build --verbose --release

- name: Run tests
run: cargo test --verbose

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
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_content_type: application/octet-stream

0 comments on commit 6302d74

Please sign in to comment.