From d7b1de18859691548f0181c4d022a24d1461310e Mon Sep 17 00:00:00 2001 From: datadunia Date: Fri, 8 May 2026 03:10:03 +0700 Subject: [PATCH] fix: use curl -u x-token auth for Gitea API --- .gitea/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 8226451..9a3ef4b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -68,7 +68,7 @@ jobs: TAG="${{ gitea.ref_name }}" RELEASE_RESP=$(curl -s -X POST \ - -H "Authorization: token $TOKEN" \ + -u "token:$TOKEN" \ -H "Content-Type: application/json" \ -d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"body\":\"Release $TAG\",\"draft\":false,\"prerelease\":false}" \ "$API/repos/$REPO/releases") @@ -85,7 +85,7 @@ jobs: for FILE in wgrplane-linux-amd64 wgrplane-linux-arm64 latest.json; do echo "Uploading $FILE..." curl -s -X POST \ - -H "Authorization: token $TOKEN" \ + -u "token:$TOKEN" \ -H "Content-Type: application/octet-stream" \ --data-binary @"$FILE" \ "$API/repos/$REPO/releases/$RELEASE_ID/assets?name=$FILE"