This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user