From c33578677fbfdcfd1a97453a8f4bef32af10a6f2 Mon Sep 17 00:00:00 2001 From: Max Vorobev Date: Mon, 18 May 2020 13:34:22 +0300 Subject: [PATCH 1/2] Use Python 2 when its time to build the package in deploy-github --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f8d0b06d..219ac515 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -136,6 +136,7 @@ jobs: pip install certifi export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN bazel run @graknlabs_build_tools//ci:release-notes -- client-python $(cat VERSION) ./RELEASE_TEMPLATE.md + - run: pyenv global 2.7.12 3.5.2 - run: | export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN bazel run --define version=$(cat VERSION) //:deploy-github -- $CIRCLE_SHA1 From e706d6c6b6829c8be8f12564ddf966f926eb658f Mon Sep 17 00:00:00 2001 From: Max Vorobev Date: Mon, 18 May 2020 13:40:04 +0300 Subject: [PATCH 2/2] Clean Bazel sandbox before deploying the package --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 219ac515..7ea23dac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -137,6 +137,7 @@ jobs: export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN bazel run @graknlabs_build_tools//ci:release-notes -- client-python $(cat VERSION) ./RELEASE_TEMPLATE.md - run: pyenv global 2.7.12 3.5.2 + - run: bazel clean --expunge - run: | export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN bazel run --define version=$(cat VERSION) //:deploy-github -- $CIRCLE_SHA1