@@ -180,23 +180,24 @@ release:
180180 deploy-github :
181181 image : graknlabs-ubuntu-20.04
182182 command : |
183- pyenv global 3.6.10
184- sudo unlink /usr/bin/python3
185- sudo ln -s $(which python3) /usr/bin/python3
186- sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.6.10/lib/python3.6/site-packages/lsb_release.py
183+ pyenv install -s 3.6.10
184+ pyenv global 3.6.10 system
187185 pip install certifi
186+ export ARTIFACT_USERNAME=$REPO_GRAKN_USERNAME
187+ export ARTIFACT_PASSWORD=$REPO_GRAKN_PASSWORD
188+ bazel run @graknlabs_dependencies//distribution/artifact:create-netrc
188189 export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN
189190 bazel run @graknlabs_dependencies//tool/release:create-notes -- client-python $(cat VERSION) ./RELEASE_TEMPLATE.md
190- bazel clean --expunge
191191 export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
192192 bazel run --define version=$(cat VERSION) //:deploy-github -- $GRABL_COMMIT
193193 deploy-pip-release :
194194 image : graknlabs-ubuntu-20.04
195195 command : |
196- pyenv global 3.6.10
197- sudo unlink /usr/bin/python3
198- sudo ln -s $(which python3) /usr/bin/python3
199- sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.6.10/lib/python3.6/site-packages/lsb_release.py
196+ pyenv install -s 3.6.10
197+ pyenv global 3.6.10 system
198+ export ARTIFACT_USERNAME=$REPO_GRAKN_USERNAME
199+ export ARTIFACT_PASSWORD=$REPO_GRAKN_PASSWORD
200+ bazel run @graknlabs_dependencies//distribution/artifact:create-netrc
200201 export DEPLOY_PIP_USERNAME=$REPO_PYPI_USERNAME
201202 export DEPLOY_PIP_PASSWORD=$REPO_PYPI_PASSWORD
202203 bazel run --define version=$(cat VERSION) //:deploy-pip -- release
0 commit comments