Skip to content

Commit

Permalink
fix(ci): release upload assets incorrect (#64)
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cui <bh@bugs.cc>
  • Loading branch information
BlackHole1 committed Feb 23, 2024
1 parent 68fabde commit 80fdf81
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ jobs:
- name: Upload binaries
run: |
OUTPATH=$(make print-outpath-${{ matrix.target }}-${{ matrix.arch }})
LABEL=${{ matrix.target }}-${{ matrix.arch }}-$OUTPATH
FILENAME=`basename $OUTPATH`
NEW_FILENAME=${{ matrix.target }}-${{ matrix.arch }}.$FILENAME
cp $OUTPATH $NEW_FILENAME
gh release upload \
${{ github.ref_name }} \
$OUTPATH#$LABEL \
./$NEW_FILENAME \
-R ${{ github.repository }} \
--clobber
Expand Down

0 comments on commit 80fdf81

Please sign in to comment.