fix(ci): Use recent ubuntu LTS release; Update release params
This commit is contained in:
parent
56c201348a
commit
6c8c732104
@ -11,7 +11,7 @@ executors:
|
|||||||
resource_class: 2xlarge
|
resource_class: 2xlarge
|
||||||
ubuntu:
|
ubuntu:
|
||||||
docker:
|
docker:
|
||||||
- image: ubuntu:19.10
|
- image: ubuntu:20.04
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
install-deps:
|
install-deps:
|
||||||
|
@ -32,6 +32,7 @@ if [ "${RELEASE_ID}" = "null" ]; then
|
|||||||
RELEASE_DATA="{
|
RELEASE_DATA="{
|
||||||
\"tag_name\": \"${CIRCLE_TAG}\",
|
\"tag_name\": \"${CIRCLE_TAG}\",
|
||||||
\"target_commitish\": \"${CIRCLE_SHA1}\",
|
\"target_commitish\": \"${CIRCLE_SHA1}\",
|
||||||
|
\"discussion_category_name\": \"announcement\",
|
||||||
\"name\": \"${CIRCLE_TAG}\",
|
\"name\": \"${CIRCLE_TAG}\",
|
||||||
\"body\": \"\",
|
\"body\": \"\",
|
||||||
\"prerelease\": false
|
\"prerelease\": false
|
||||||
@ -51,8 +52,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE_UPLOAD_URL=`echo "${RELEASE_RESPONSE}" | jq -r '.upload_url' | cut -d'{' -f1`
|
RELEASE_UPLOAD_URL=`echo "${RELEASE_RESPONSE}" | jq -r '.upload_url' | cut -d'{' -f1`
|
||||||
|
echo "Preparing to send artifacts to ${RELEASE_UPLOAD_URL}"
|
||||||
|
|
||||||
bundles=(
|
artifacts=(
|
||||||
"lotus_${CIRCLE_TAG}_linux-amd64.tar.gz"
|
"lotus_${CIRCLE_TAG}_linux-amd64.tar.gz"
|
||||||
"lotus_${CIRCLE_TAG}_linux-amd64.tar.gz.cid"
|
"lotus_${CIRCLE_TAG}_linux-amd64.tar.gz.cid"
|
||||||
"lotus_${CIRCLE_TAG}_linux-amd64.tar.gz.sha512"
|
"lotus_${CIRCLE_TAG}_linux-amd64.tar.gz.sha512"
|
||||||
@ -60,9 +62,10 @@ bundles=(
|
|||||||
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.cid"
|
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.cid"
|
||||||
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.sha512"
|
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.sha512"
|
||||||
)
|
)
|
||||||
for RELEASE_FILE in "${bundles[@]}"
|
|
||||||
|
for RELEASE_FILE in "${artifacts[@]}"
|
||||||
do
|
do
|
||||||
echo "Uploading release bundle: ${RELEASE_FILE}"
|
echo "Uploading ${RELEASE_FILE}..."
|
||||||
curl \
|
curl \
|
||||||
--request POST \
|
--request POST \
|
||||||
--header "Authorization: token ${GITHUB_TOKEN}" \
|
--header "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
@ -70,7 +73,7 @@ do
|
|||||||
--data-binary "@${RELEASE_FILE}" \
|
--data-binary "@${RELEASE_FILE}" \
|
||||||
"$RELEASE_UPLOAD_URL?name=$(basename "${RELEASE_FILE}")"
|
"$RELEASE_UPLOAD_URL?name=$(basename "${RELEASE_FILE}")"
|
||||||
|
|
||||||
echo "Release bundle uploaded: ${RELEASE_FILE}"
|
echo "Uploaded ${RELEASE_FILE}"
|
||||||
done
|
done
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user