We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 811060a commit 60855ceCopy full SHA for 60855ce
1 file changed
scripts/release.sh
@@ -24,13 +24,15 @@ if [[ -n $(git status -s) ]]; then
24
exit 1
25
fi
26
27
-# Check we're on main branch
+# Check we're on main/master branch
28
BRANCH=$(git branch --show-current)
29
if [ "$BRANCH" != "main" ] && [ "$BRANCH" != "master" ]; then
30
echo -e "${RED}Error: Not on main/master branch (currently on ${BRANCH})${NC}"
31
32
33
34
+echo -e "${YELLOW}Using branch: ${BRANCH}${NC}"
35
+
36
# Pull latest changes
37
echo -e "${YELLOW}Pulling latest changes...${NC}"
38
git pull
@@ -74,7 +76,7 @@ git tag "v${VERSION}"
74
76
75
77
# Push
78
echo -e "${YELLOW}Pushing to origin...${NC}"
-git push origin main
79
+git push origin "$BRANCH"
80
git push origin "v${VERSION}"
81
82
echo -e "${GREEN}✓ Release ${VERSION} complete!${NC}"
0 commit comments