Skip to content

Commit 60855ce

Browse files
author
James Boulton
committed
fix script
1 parent 811060a commit 60855ce

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ if [[ -n $(git status -s) ]]; then
2424
exit 1
2525
fi
2626

27-
# Check we're on main branch
27+
# Check we're on main/master branch
2828
BRANCH=$(git branch --show-current)
2929
if [ "$BRANCH" != "main" ] && [ "$BRANCH" != "master" ]; then
3030
echo -e "${RED}Error: Not on main/master branch (currently on ${BRANCH})${NC}"
3131
exit 1
3232
fi
3333

34+
echo -e "${YELLOW}Using branch: ${BRANCH}${NC}"
35+
3436
# Pull latest changes
3537
echo -e "${YELLOW}Pulling latest changes...${NC}"
3638
git pull
@@ -74,7 +76,7 @@ git tag "v${VERSION}"
7476

7577
# Push
7678
echo -e "${YELLOW}Pushing to origin...${NC}"
77-
git push origin main
79+
git push origin "$BRANCH"
7880
git push origin "v${VERSION}"
7981

8082
echo -e "${GREEN}✓ Release ${VERSION} complete!${NC}"

0 commit comments

Comments
 (0)