This commit is contained in:
@@ -68,7 +68,7 @@ jobs:
|
|||||||
TAG="${{ gitea.ref_name }}"
|
TAG="${{ gitea.ref_name }}"
|
||||||
|
|
||||||
RELEASE_RESP=$(curl -s -X POST \
|
RELEASE_RESP=$(curl -s -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-u "token:$TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"body\":\"Release $TAG\",\"draft\":false,\"prerelease\":false}" \
|
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\",\"body\":\"Release $TAG\",\"draft\":false,\"prerelease\":false}" \
|
||||||
"$API/repos/$REPO/releases")
|
"$API/repos/$REPO/releases")
|
||||||
@@ -85,7 +85,7 @@ jobs:
|
|||||||
for FILE in wgrplane-linux-amd64 wgrplane-linux-arm64 latest.json; do
|
for FILE in wgrplane-linux-amd64 wgrplane-linux-arm64 latest.json; do
|
||||||
echo "Uploading $FILE..."
|
echo "Uploading $FILE..."
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token $TOKEN" \
|
-u "token:$TOKEN" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary @"$FILE" \
|
--data-binary @"$FILE" \
|
||||||
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=$FILE"
|
"$API/repos/$REPO/releases/$RELEASE_ID/assets?name=$FILE"
|
||||||
|
|||||||
Reference in New Issue
Block a user