tmp: publish dry run
This commit is contained in:
parent
65651099b6
commit
92fdbd80d9
@ -855,13 +855,13 @@ workflows:
|
|||||||
- build-all
|
- build-all
|
||||||
- build-macos
|
- build-macos
|
||||||
- build-appimage
|
- build-appimage
|
||||||
filters:
|
# filters:
|
||||||
branches:
|
# branches:
|
||||||
ignore:
|
# ignore:
|
||||||
- /.*/
|
# - /.*/
|
||||||
tags:
|
# tags:
|
||||||
only:
|
# only:
|
||||||
- /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
# - /^v\d+\.\d+\.\d+(-rc\d+)?$/
|
||||||
- build-and-push-image:
|
- build-and-push-image:
|
||||||
dockerfile: Dockerfile.lotus
|
dockerfile: Dockerfile.lotus
|
||||||
path: .
|
path: .
|
||||||
|
@ -18,6 +18,8 @@ do
|
|||||||
command -v "${REQUIRE}" >/dev/null 2>&1 || echo >&2 "'${REQUIRE}' must be installed"
|
command -v "${REQUIRE}" >/dev/null 2>&1 || echo >&2 "'${REQUIRE}' must be installed"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
CIRCLE_TAG=DEFINITELYDOESNOTEXIST
|
||||||
|
|
||||||
#see if the release already exists by tag
|
#see if the release already exists by tag
|
||||||
RELEASE_RESPONSE=`
|
RELEASE_RESPONSE=`
|
||||||
curl \
|
curl \
|
||||||
@ -47,7 +49,7 @@ if [ "${RELEASE_ID}" = "null" ]; then
|
|||||||
|
|
||||||
# create it if it doesn't exist yet
|
# create it if it doesn't exist yet
|
||||||
RELEASE_RESPONSE=`
|
RELEASE_RESPONSE=`
|
||||||
curl \
|
echo curl \
|
||||||
--request POST \
|
--request POST \
|
||||||
--header "Authorization: token ${GITHUB_TOKEN}" \
|
--header "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
@ -58,6 +60,8 @@ else
|
|||||||
echo "release already exists"
|
echo "release already exists"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
RELEASE_RESPONSE=DEFINITELYDOESNOTEXIST
|
||||||
|
|
||||||
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}"
|
echo "Preparing to send artifacts to ${RELEASE_UPLOAD_URL}"
|
||||||
|
|
||||||
@ -68,15 +72,15 @@ artifacts=(
|
|||||||
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz"
|
"lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz"
|
||||||
"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"
|
||||||
"Lotus-${CIRCLE_TAG}-x86_64.AppImage"
|
"Lotus-${CIRCLE_TAG}-x86_64.AppImage"
|
||||||
"Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid"
|
"Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid"
|
||||||
"Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512"
|
"Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512"
|
||||||
)
|
)
|
||||||
|
|
||||||
for RELEASE_FILE in "${artifacts[@]}"
|
for RELEASE_FILE in "${artifacts[@]}"
|
||||||
do
|
do
|
||||||
echo "Uploading ${RELEASE_FILE}..."
|
echo "Uploading ${RELEASE_FILE}..."
|
||||||
curl \
|
echo curl \
|
||||||
--request POST \
|
--request POST \
|
||||||
--header "Authorization: token ${GITHUB_TOKEN}" \
|
--header "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
--header "Content-Type: application/octet-stream" \
|
--header "Content-Type: application/octet-stream" \
|
||||||
@ -96,7 +100,7 @@ miscellaneous=(
|
|||||||
for MISC in "${miscellaneous[@]}"
|
for MISC in "${miscellaneous[@]}"
|
||||||
do
|
do
|
||||||
echo "Uploading release bundle: ${MISC}"
|
echo "Uploading release bundle: ${MISC}"
|
||||||
curl \
|
echo curl \
|
||||||
--request POST \
|
--request POST \
|
||||||
--header "Authorization: token ${GITHUB_TOKEN}" \
|
--header "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
--header "Content-Type: application/octet-stream" \
|
--header "Content-Type: application/octet-stream" \
|
||||||
|
Loading…
Reference in New Issue
Block a user