Skip to content

Commit

Permalink
chore: Update Rust workflow to build and test in release mode, create…
Browse files Browse the repository at this point in the history
… release, and upload release asset
  • Loading branch information
edgarburgues committed May 15, 2024
1 parent 0d69006 commit 15977a0
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 @@ -49,14 +49,18 @@ jobs:
name: rust-app
path: target/x86_64-pc-windows-gnu/release

- name: Get current date
id: get_date
run: echo "DATE=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV

- name: Publish 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 }}
tag_name: v${{ env.DATE }}
release_name: Release ${{ env.DATE }}
draft: false
prerelease: false

Expand Down

0 comments on commit 15977a0

Please sign in to comment.