diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index bd528f245..01aa71997 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -85,13 +85,17 @@ jobs: body_path: ${{ steps.prepare.outputs.body_path }} prerelease: ${{ steps.prepare.outputs.is_beta }} run: | - args=() - [[ $prerelease == yes ]] && args+=(--prerelease) + if gh release view "$tag_name" >/dev/null 2>&1; then + echo "::warning::Release $tag_name already exists" + else + args=() + [[ $prerelease == yes ]] && args+=(--prerelease) - gh release create "$tag_name" --verify-tag --draft "${args[@]}" \ - --target "$target" \ - --title "$release_name" \ - --notes-file "$body_path" + gh release create "$tag_name" --verify-tag --draft "${args[@]}" \ + --target "$target" \ + --title "$release_name" \ + --notes-file "$body_path" + fi build-linux: strategy: @@ -356,7 +360,7 @@ jobs: with: msbuild-architecture: x64 - - name: "[macOS] Setup ccache" + - name: "[macOS] Install ccache" if: matrix.os == 'macOS' && matrix.use_ccache == 1 run: brew install ccache