From 8fd4bba52b872c4163a714d825d04176c321e4ac Mon Sep 17 00:00:00 2001 From: Mac Lim Date: Sat, 6 Apr 2024 02:40:10 +1100 Subject: [PATCH] Update rust.yml workflow --- .github/workflows/rust.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0d38be0..9013820 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,3 +12,24 @@ jobs: - uses: actions/checkout@v3 - name: Build run: cargo build --release --target=x86_64-unknown-linux-gnu + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.sha }} + release_name: Release ${{ github.sha }} + draft: false + prerelease: false + + - name: Upload Release Asset + id: 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/x86_64-unknown-linux-gnu/release/MMP + asset_name: MMP + asset_content_type: application/x-elf