Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:green_heart: Resolve draft release lookup failure https://github.com/siyuan-note/siyuan/issues/18366

Danield65e8de444e4
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 69d803aa24..b0b7125693 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -630,7 +630,7 @@ jobs:
set -euo pipefail
VERSION="${{ needs.prepare.outputs.version }}"
TAG="${{ github.ref_name }}"
- RELEASE_ID="$(gh api "repos/${GH_REPO}/releases/tags/${TAG}" --jq '.id')"
+ RELEASE_ID="$(gh release view "${TAG}" --json databaseId --jq '.databaseId')"
EXPECTED_ASSETS=(
"siyuan-${VERSION}-linux.AppImage"
"siyuan-${VERSION}-linux.tar.gz"