Skip to content

Commit

Permalink
Update release file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Zel9278 committed Jan 21, 2024
1 parent fa0b12c commit b5f575a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ jobs:
with:
name: ${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/pcsc-rs
target/${{ matrix.target }}/release/pcsc-rs.exe
target/${{ matrix.target }}/release/jbox
target/${{ matrix.target }}/release/jbox.exe
- name: Upload to release
if: ${{ inputs.tag-name }}
working-directory: target/${{ matrix.target }}/release/
run: |
if [ -e pcsc-rs.exe ]; then
filename="pcsc-rs-${{ inputs.tag-name }}-${{ matrix.target }}.exe"
mv pcsc-rs.exe "$filename"
if [ -e jbox.exe ]; then
filename="jbox-${{ inputs.tag-name }}-${{ matrix.target }}.exe"
mv jbox.exe "$filename"
gh release upload ${{ inputs.tag-name }} "$filename"#${{ matrix.target }} --clobber
else
filename="pcsc-rs-${{ inputs.tag-name }}-${{ matrix.target }}"
mv pcsc-rs "$filename"
filename="jbox-${{ inputs.tag-name }}-${{ matrix.target }}"
mv jbox "$filename"
gh release upload ${{ inputs.tag-name }} "$filename"#${{ matrix.target }} --clobber
fi

0 comments on commit b5f575a

Please sign in to comment.