From fcd5f232dc7662a2e520da4639c6b83113cc2c76 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Sun, 17 May 2020 09:25:44 +0800 Subject: [PATCH] persist_to_workspace root is not present in attach_workspace --- .circleci/config.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index efa77958..12cc121c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,7 +41,7 @@ jobs: path: ./build/release destination: releases - persist_to_workspace: - root: ./build + root: build paths: - release @@ -138,7 +138,7 @@ jobs: path: build\\release destination: releases - persist_to_workspace: - root: ./build + root: build paths: - release @@ -191,7 +191,7 @@ jobs: path: ./build/release destination: releases - persist_to_workspace: - root: ./build + root: build paths: - release @@ -204,6 +204,8 @@ jobs: - run: name: "Publish Release on GitHub" command: | + ls -alh /tmp/workspace/release + if [[ ! -z "${CIRCLE_TAG}" ]]; then go get github.com/tcnksm/ghr EXTRA_FLAGS="-replace" @@ -214,7 +216,7 @@ jobs: -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" \ -c "${CIRCLE_SHA1}" \ "${EXTRA_FLAGS}" \ - "${CIRCLE_TAG}" /tmp/workspace/build/release + "${CIRCLE_TAG}" /tmp/workspace/release else echo "Current build is not tagged." fi