Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Hua Audio 2026-03-08 01:24:55 +01:00 committed by GitHub
parent c946477d21
commit 7dac458c2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ needs.generate-version.outputs.tag }} \
--title "${{ needs.generate-version.outputs.version }}" \
--notes "Nightly build for ${{ needs.generate-version.outputs.version }}" \
TAG="${{ needs.generate-version.outputs.tag }}"
TITLE="${{ needs.generate-version.outputs.version }}"
NOTES="Nightly build for ${{ needs.generate-version.outputs.version }}"
if gh release view "$TAG" >/dev/null 2>&1; then
echo "Release $TAG already exists, updating metadata and assets..."
gh release edit "$TAG" \
--title "$TITLE" \
--notes "$NOTES"
gh release upload "$TAG" build/* --clobber
else
echo "Creating new release $TAG..."
gh release create "$TAG" \
--title "$TITLE" \
--notes "$NOTES" \
build/*
fi