Skip to content

Commit

Permalink
Update rust.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mac898 authored Apr 5, 2024
1 parent 1ce3c7d commit 8fd4bba
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8fd4bba

Please sign in to comment.