File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Script to create a release branch and associated working 'in progress' branch
4+ # TODO: add support for creating a 'stable' branch
5+
6+ set -e
7+
8+ if [[ -n $( git status -s) ]]; then
9+ echo " Error: git directory is not clean; check 'git status'"
10+ exit 1
11+ fi
12+
13+ echo " Syncing main branch"
14+ git remote update
15+ git checkout main
16+ git pull
17+
18+ DATE=$( date -u " +%Y_%m_%d" )
19+ RELEASE_BRANCH=" axt_${DATE} _release_branch"
20+
21+ echo " Creating $RELEASE_BRANCH "
22+ git checkout -b $RELEASE_BRANCH
23+ git push --set-upstream origin $RELEASE_BRANCH
24+
25+ echo " Creating ${RELEASE_BRANCH} _in_progress"
26+ git checkout -b ${RELEASE_BRANCH} _in_progress
27+
28+ echo " Creating complete. Now do the following steps"
29+ echo " vim build_extensions/axt_versions.bzl"
30+ echo " bash tools/release/validate_and_propagate_versions.sh"
31+ echo " git commit -a -m 'Update artifacts and version numbers for $DATE release'"
32+ echo " git push --set-upstream origin ${RELEASE_BRANCH} _in_progress"
33+ echo " Navigate to https://github.com/android/android-test/compare/${RELEASE_BRANCH} ...${RELEASE_BRANCH} _in_progress to create a PR"
34+
You can’t perform that action at this time.
0 commit comments