修改更新release的逻辑

This commit is contained in:
DLmaster
2024-09-10 08:44:10 +08:00
parent 5f2337d949
commit d086a5a152

View File

@@ -132,7 +132,7 @@ jobs:
NOTES_MAIN="$(tail -n +2 更新说明.txt)"
NOTES_TAIL="\`\`\`本release通过GitHub Actions自动构建\`\`\`"
NOTES="$NOTES_MAIN<br><br>$NOTES_TAIL"
echo "--target main --title $NAME --notes $NOTES" > release_options.txt
gh release edit "$TAGNAME" -F release_options.txt artifacts/*
gh release delete "$TAGNAME" --yes
gh release create "$TAGNAME" --target "main" --title "$NAME" --notes "$NOTES" artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}