From 1da98957c28ff21102096833ccb145cebb7b6166 Mon Sep 17 00:00:00 2001 From: "Z.To" Date: Thu, 23 Apr 2026 21:03:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20secret=20=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=B8=BA=20RELEASE=5FTOKEN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3ca7fe9..8c8dc95 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -45,7 +45,7 @@ jobs: TAG_NAME="${GITEA_REF#refs/tags/}" echo "Creating release: $TAG_NAME" curl -s -X POST "$GITEA_URL/api/v1/repos/titor/hxclaw/releases" \ - -H "Authorization: token $GITEA_TOKEN" \ + -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Content-Type: application/json" \ -d "{\"tag_name\":\"$TAG_NAME\",\"name\":\"$TAG_NAME\",\"body\":\"Release $TAG_NAME\"}" @@ -54,7 +54,7 @@ jobs: for f in dist/hxclaw-* dist/checksums.txt; do if [ -f "$f" ]; then curl -s -X POST "$GITEA_URL/api/v1/repos/titor/hxclaw/releases/latest/assets" \ - -H "Authorization: token $GITEA_TOKEN" \ + -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -F "attachment=@$f" fi done