From d8be4962166153a7720624a6f711241694c5cd47 Mon Sep 17 00:00:00 2001 From: "Z.To" Date: Thu, 23 Apr 2026 21:40:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index d55c966..dce151e 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,11 +19,11 @@ jobs: echo -e 'https://mirrors.aliyun.com/alpine/v3.20/main/\nhttps://mirrors.aliyun.com/alpine/v3.20/community/' > /etc/apk/repositories apk add git bash git clone https://hub.gaomia.site/titor/HxClaw.git /workspace/hxclaw - cp -r /workspace/hxclaw/* /workspace/hxclaw/ - cp -r /workspace/hxclaw/.* /workspace/hxclaw/ 2>/dev/null || true - name: Download dependencies - run: go mod download + run: | + cd /workspace/hxclaw + go mod download - name: Build run: | @@ -37,7 +37,9 @@ jobs: done - name: Checksums - run: sha256sum hxclaw-* > checksums.txt + run: | + cd /workspace/hxclaw + sha256sum hxclaw-* > checksums.txt - name: Release env: @@ -47,6 +49,8 @@ jobs: echo -e 'https://mirrors.aliyun.com/alpine/v3.20/main/\nhttps://mirrors.aliyun.com/alpine/v3.20/community/' > /etc/apk/repositories apk add curl jq + cd /workspace/hxclaw + TAG_NAME="${GITHUB_REF#refs/tags/}" RELEASE_BODY=$(git tag -l --format='%(contents)' "$TAG_NAME" 2>/dev/null || git log -1 --format="%s%n%n%b" "$TAG_NAME" 2>/dev/null || echo "Release $TAG_NAME")