fix:错误则直接退出
Some checks failed
Build All UI APP / Prepare Version (push) Has been cancelled
Build All UI APP / Build Android APK (push) Has been cancelled
Build All UI APP / Build Desktop Apps (amd64, macos-amd64, macos-13, darwin) (push) Has been cancelled
Build All UI APP / Build Desktop Apps (amd64, windows-amd64, windows-latest, windows) (push) Has been cancelled
Build All UI APP / Build Desktop Apps (arm64, macos-arm64, macos-latest, darwin) (push) Has been cancelled

This commit is contained in:
spiritlhl
2025-10-31 23:42:38 +08:00
parent 58282ea99a
commit 7e58d9a23d

View File

@@ -251,17 +251,13 @@ jobs:
ls -lh .build/
du -sh .build/*
- name: Get or create release
- name: Get release
id: get_release
shell: bash
run: |
LATEST_RELEASE=$(gh release list --limit 1 --json tagName --jq '.[0].tagName')
if [ -z "$LATEST_RELEASE" ] || [ "$LATEST_RELEASE" == "null" ]; then
echo "No existing release found, creating a new one"
gh release create "${{ needs.prepare.outputs.version }}" \
--title "Release ${{ needs.prepare.outputs.version }}" \
--notes "Automated build from ${{ github.sha }}"
RELEASE_TAG="${{ needs.prepare.outputs.version }}"
exit 1
else
RELEASE_TAG="$LATEST_RELEASE"
echo "Found existing release: $RELEASE_TAG"