Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed Jan 5, 2024
1 parent b90de0c commit 6cc2a41
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ jobs:
--draft
shell: bash

# Upload the built artifact to the release
- name: Prepare asset name
id: prep
run: |
echo "ASSET_NAME=ncbi$(if [ ${{ runner.os }} = 'Windows' ]; then echo '.exe'; fi)" >> $GITHUB_ENV
shell: bash

- name: Upload Release Asset
run: |
gh release upload ${{ github.ref_name }} \
./target/release/ncbi \
./target/release/${{ env.ASSET_NAME }} \
--clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash

0 comments on commit 6cc2a41

Please sign in to comment.