@@ -64,48 +64,9 @@ release:
6464 export NOTES_VALIDATE_TOKEN=$REPO_GITHUB_TOKEN
6565 bazel run @vaticle_dependencies//tool/release/notes:validate --test_output=streamed -- $FACTORY_OWNER $FACTORY_REPO ./RELEASE_NOTES_LATEST.md
6666 deployment :
67- deploy-github :
67+ trigger-release-circleci :
6868 image : vaticle-ubuntu-22.04
69- type : foreground
70- command : |
71- export PYENV_ROOT="/opt/pyenv"
72- pyenv install 3.7.9
73- pyenv global 3.7.9
74- sudo unlink /usr/bin/python3
75- sudo ln -s $(which python3) /usr/bin/python3
76- sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.9/lib/python3.7/site-packages/lsb_release.py
77- python3 -m pip install certifi
78- export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
79- bazel run --define version=$(cat VERSION) //:deploy-github -- $FACTORY_COMMIT
80- deploy-apt-release :
81- image : vaticle-ubuntu-22.04
82- dependencies : [deploy-github]
83- type : foreground
84- command : |
85- export ARTIFACT_USERNAME=$REPO_VATICLE_USERNAME
86- export ARTIFACT_PASSWORD=$REPO_VATICLE_PASSWORD
87- bazel run @vaticle_dependencies//distribution/artifact:create-netrc
88- export DEPLOY_APT_USERNAME=$REPO_VATICLE_USERNAME
89- export DEPLOY_APT_PASSWORD=$REPO_VATICLE_PASSWORD
90- # Do not upgrade Python until bazelbuild/rules_pkg#397 is fixed
91- export PYENV_ROOT="/opt/pyenv"
92- pyenv install 3.7.9
93- pyenv global 3.7.9
94- sudo unlink /usr/bin/python3
95- sudo ln -s $(which python3) /usr/bin/python3
96- sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.9/lib/python3.7/site-packages/lsb_release.py
97- bazel run --define version=$(cat VERSION) //:deploy-apt -- release
98- deploy-artifact-release :
99- image : vaticle-ubuntu-22.04
100- dependencies : [deploy-github]
101- type : foreground
10269 command : |
103- export ARTIFACT_USERNAME=$REPO_VATICLE_USERNAME
104- export ARTIFACT_PASSWORD=$REPO_VATICLE_PASSWORD
105- bazel run @vaticle_dependencies//distribution/artifact:create-netrc
106- export DEPLOY_ARTIFACT_USERNAME=$REPO_VATICLE_USERNAME
107- export DEPLOY_ARTIFACT_PASSWORD=$REPO_VATICLE_PASSWORD
108- bazel run --define version=$(cat VERSION) //:deploy-linux-targz -- release
109- bazel run --define version=$(cat VERSION) //:deploy-mac-zip -- release
110- bazel run --define version=$(cat VERSION) //:deploy-windows-zip -- release
111-
70+ git checkout -b release
71+ git push -f origin release
72+ echo "Successfully pushed branch 'release', which triggers a release workflow in CircleCI. The progress of the release can be tracked there."
0 commit comments