1 parent 2f42651 commit db3a193Copy full SHA for db3a193
1 file changed
.buildkite/tag.sh
@@ -32,10 +32,19 @@ fi
32
33
git remote set-url origin "https://alexhraber:${GITHUB_TOKEN}@github.com/alexhraber/builddeck.git"
34
35
+# Create tag
36
git tag -a "${VERSION}" -m "Release ${VERSION}"
-git push origin "${VERSION}"
37
-echo "Tagged ${VERSION}"
+echo "Tag created locally: ${VERSION}"
38
+
39
+# Push tag with explicit error handling
40
+if git push origin "${VERSION}"; then
41
+ echo "Tagged ${VERSION}"
42
+else
43
+ echo "ERROR: Failed to push tag ${VERSION}"
44
+ exit 1
45
+fi
46
47
# Output version to artifact for TUI consumption
48
echo "${VERSION}" > tag.txt
-buildkite-agent artifact upload tag.txt
49
+buildkite-agent artifact upload tag.txt
50
+echo "Uploaded tag.txt artifact"
0 commit comments