fix: 修正 secret 名称为 RELEASE_TOKEN
Some checks failed
Release / build (push) Has been cancelled

This commit is contained in:
2026-04-23 21:03:54 +08:00
parent bd48c305ab
commit 1da98957c2

View File

@@ -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