Skip to content

Commit

Permalink
ci(release): update release workflow to fix tag name and asset upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbinoGeek committed Jun 22, 2024
1 parent 3f3aa0e commit 4bee5ca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create -p "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
./build/*/*
tagname="${GITHUB_REF#refs/tags/}"
echo "Tag name is $tagname"
echo "Uploading release assets..."
ls -lR build/
gh release create "$tagname" \
--repo="$GITHUB_REPOSITORY" \
--title="${tagname}" \
build/*/*

0 comments on commit 4bee5ca

Please sign in to comment.