[Build] Remove unnecessary version.txt in ci config (#183)
author최원영/Common Platform Lab(SR)/Staff Engineer/삼성전자 <wy80.choi@samsung.com>
Wed, 1 Apr 2020 05:15:23 +0000 (14:15 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 1 Apr 2020 05:15:23 +0000 (14:15 +0900)
.circleci/config.yml

index c93052c..8e18e0b 100644 (file)
@@ -20,14 +20,12 @@ jobs:
       - run:
           command: |
             VERSION=$(./build.sh version nightly)
-            echo ${VERSION} > version.txt
             ./build.sh build
             ./build.sh pack ${VERSION}
       - persist_to_workspace:
           root: .
           paths:
             - XSF.*.nupkg
-            - version.txt
 
   build-release:
     docker:
@@ -38,14 +36,12 @@ jobs:
       - run:
           command: |
             VERSION=$(echo ${CIRCLE_TAG} | sed -e "s/^v//")
-            echo ${VERSION} > version.txt
             ./build.sh build
             ./build.sh pack ${VERSION}
       - persist_to_workspace:
           root: .
           paths:
             - XSF.*.nupkg
-            - version.txt
 
   deploy:
     docker:
@@ -67,8 +63,7 @@ jobs:
           at: .
       - run:
           command: |
-            VERSION=$(cat version.txt)
-            ghr -t ${GITHUB_TOKEN} -u dotnet -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace v${VERSION} *.nupkg
+            ghr -t ${GITHUB_TOKEN} -u dotnet -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} *.nupkg
 
 
 workflows: