Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
move artifacts into single directory + upload entire directory (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattthaber authored Nov 23, 2018
1 parent db681ed commit 688f3f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ jobs:
- run:
name: "Publish Release on Github"
command: |
mkdir release-archive
VERSION=`cat ~/workspace/client/version.txt`
tar cvf sanity-runner-serverless-${VERSION}.tar ~/workspace/service/artifacts/build/
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete v${VERSION} ~/workspace/client/bin/
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete v${VERSION} sanity-runner-serverless-${VERSION}.tar
mv sanity-runner-serverless-${VERSION}.tar release-archive/
mv ~/workspace/client/bin/* release-archive/
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete v${VERSION} release-archive/
website:
<<: *website_docker_defaults
Expand Down

0 comments on commit 688f3f0

Please sign in to comment.