@@ -65,14 +65,18 @@ if [[ "${GH_CLI_ACTUAL_SHA256}" != "${GH_CLI_EXPECTED_SHA256}" ]]; then
6565fi
6666echo " [FINISH] Downloading gh CLI"
6767
68+ # If this is a release version (not a prerelease), the commit must be on main or
69+ # the correct release branch (e.g., release/v1.2). This constraint doesn't apply
70+ # to prereleases so we can test this workflow.
6871echo " [START] Release branch checks"
69- # Current commit must be on either `main` or the corresponding release branch
70- readonly EXPECTED_RELEASE_BRANCH=" $( sed --regexp-extended ' s|(^v[0-9]+\.[0-9]+)\..*$|release/\1|' <<< ${RELEASE_VERSION} ) "
71- if ! git branch \
72- --contains " $( git rev-parse HEAD) " \
73- | grep --quiet --extended-regexp " main|${EXPECTED_RELEASE_BRANCH} " ; then
74- echo " Commit $( git rev-parse HEAD) is not on main or release branch ${EXPECTED_RELEASE_BRANCH} ; exiting"
75- exit 1
72+ if [[ " ${RELEASE_VERSION} " != * -* ]]; then
73+ readonly EXPECTED_RELEASE_BRANCH=" $( sed --regexp-extended ' s|(^v[0-9]+\.[0-9]+)\..*$|release/\1|' <<< ${RELEASE_VERSION} ) "
74+ if ! git branch \
75+ --contains " $( git rev-parse HEAD) " \
76+ | grep --quiet --extended-regexp " main|${EXPECTED_RELEASE_BRANCH} " ; then
77+ echo " Commit $( git rev-parse HEAD) is not on main or release branch ${EXPECTED_RELEASE_BRANCH} ; exiting"
78+ exit 1
79+ fi
7680fi
7781echo " [FINISH] Release branch checks"
7882
@@ -97,6 +101,10 @@ echo "[FINISH] Building artifacts"
97101# resolution, we may be able to drop this staging step and the corresponding
98102# temp dir.
99103echo " [START] Staging artifacts"
104+ cp \
105+ bazel-out/k8-fastbuild-ST-* /bin/cmd/engflow_auth/engflow_auth_linux_arm64 \
106+ " ${ARTIFACTS_DIR} /engflow_auth_linux_arm64"
107+
100108cp \
101109 bazel-out/k8-fastbuild-ST-* /bin/cmd/engflow_auth/engflow_auth_linux_x64 \
102110 " ${ARTIFACTS_DIR} /engflow_auth_linux_x64"
@@ -119,6 +127,7 @@ echo "[START] Creating release"
119127${GH_CLI} release create \
120128 " ${RELEASE_VERSION} " \
121129 --generate-notes \
130+ " ${ARTIFACTS_DIR} /engflow_auth_linux_arm64#engflow_auth (Linux, arm64)" \
122131 " ${ARTIFACTS_DIR} /engflow_auth_linux_x64#engflow_auth (Linux, x64)" \
123132 " ${ARTIFACTS_DIR} /engflow_auth_macos_arm64#engflow_auth (macOS, arm64)" \
124133 " ${ARTIFACTS_DIR} /engflow_auth_macos_x64#engflow_auth (macOS, x64)" \
0 commit comments