From 92fdbd80d937bb73a8ef65062a740e291620d185 Mon Sep 17 00:00:00 2001 From: Cory Schwartz Date: Thu, 3 Jun 2021 10:18:13 -0700 Subject: [PATCH] tmp: publish dry run --- .circleci/config.yml | 14 +++++++------- scripts/publish-release.sh | 16 ++++++++++------ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b0f8120f3..69ef892e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -855,13 +855,13 @@ workflows: - build-all - build-macos - build-appimage - filters: - branches: - ignore: - - /.*/ - tags: - only: - - /^v\d+\.\d+\.\d+(-rc\d+)?$/ + # filters: + # branches: + # ignore: + # - /.*/ + # tags: + # only: + # - /^v\d+\.\d+\.\d+(-rc\d+)?$/ - build-and-push-image: dockerfile: Dockerfile.lotus path: . diff --git a/scripts/publish-release.sh b/scripts/publish-release.sh index 4c152d15c..fe1c89caf 100755 --- a/scripts/publish-release.sh +++ b/scripts/publish-release.sh @@ -18,6 +18,8 @@ do command -v "${REQUIRE}" >/dev/null 2>&1 || echo >&2 "'${REQUIRE}' must be installed" done +CIRCLE_TAG=DEFINITELYDOESNOTEXIST + #see if the release already exists by tag RELEASE_RESPONSE=` curl \ @@ -47,7 +49,7 @@ if [ "${RELEASE_ID}" = "null" ]; then # create it if it doesn't exist yet RELEASE_RESPONSE=` - curl \ + echo curl \ --request POST \ --header "Authorization: token ${GITHUB_TOKEN}" \ --header "Content-Type: application/json" \ @@ -58,6 +60,8 @@ else echo "release already exists" fi +RELEASE_RESPONSE=DEFINITELYDOESNOTEXIST + RELEASE_UPLOAD_URL=`echo "${RELEASE_RESPONSE}" | jq -r '.upload_url' | cut -d'{' -f1` 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.cid" "lotus_${CIRCLE_TAG}_darwin-amd64.tar.gz.sha512" - "Lotus-${CIRCLE_TAG}-x86_64.AppImage" - "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid" - "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512" + "Lotus-${CIRCLE_TAG}-x86_64.AppImage" + "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid" + "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512" ) for RELEASE_FILE in "${artifacts[@]}" do echo "Uploading ${RELEASE_FILE}..." - curl \ + echo curl \ --request POST \ --header "Authorization: token ${GITHUB_TOKEN}" \ --header "Content-Type: application/octet-stream" \ @@ -96,7 +100,7 @@ miscellaneous=( for MISC in "${miscellaneous[@]}" do echo "Uploading release bundle: ${MISC}" - curl \ + echo curl \ --request POST \ --header "Authorization: token ${GITHUB_TOKEN}" \ --header "Content-Type: application/octet-stream" \