This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
|||||||
api="$SERVER/api/v1/repos/$REPO"
|
api="$SERVER/api/v1/repos/$REPO"
|
||||||
id=$(curl -fsS -X POST "$api/releases" \
|
id=$(curl -fsS -X POST "$api/releases" \
|
||||||
-H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
|
-H "Authorization: token $TOKEN" -H "Content-Type: application/json" \
|
||||||
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}" | sed -n 's/.*"id":\([0-9]*\).*/\1/p' | head -1)
|
-d "{\"tag_name\":\"$TAG\",\"name\":\"$TAG\"}" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
|
||||||
for f in dist/*; do
|
for f in dist/*; do
|
||||||
curl -fsS -X POST "$api/releases/$id/assets?name=$(basename "$f")" \
|
curl -fsS -X POST "$api/releases/$id/assets?name=$(basename "$f")" \
|
||||||
-H "Authorization: token $TOKEN" -F "attachment=@$f"
|
-H "Authorization: token $TOKEN" -F "attachment=@$f"
|
||||||
|
|||||||
Reference in New Issue
Block a user